mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-30 17:14:42 +00:00
Hack to stop logging edit events for non-desktop targets
Mobile target, for example, has events logged in the MobileFrontend extension instead (which covers both the wikitext editor there and the VE integration) Bug: T110272 Bug: T109525 Change-Id: I521f1825dc9c0a135db54cd005cda723908f14bc
This commit is contained in:
parent
e14c8e11cf
commit
a46b7a819e
|
@ -67,6 +67,7 @@ ve.init.mw.DesktopArticleTarget = function VeInitMwDesktopArticleTarget( config
|
|||
);
|
||||
this.originalDocumentTitle = document.title;
|
||||
this.tabLayout = mw.config.get( 'wgVisualEditorConfig' ).tabLayout;
|
||||
this.events = new ve.init.mw.TargetEvents( this );
|
||||
|
||||
// Initialization
|
||||
this.$element.addClass( 've-init-mw-desktopArticleTarget' );
|
||||
|
|
|
@ -50,7 +50,7 @@ ve.init.mw.Target = function VeInitMwTarget( pageName, revisionId, config ) {
|
|||
this.editToken = mw.user.tokens.get( 'editToken' );
|
||||
this.submitUrl = ( new mw.Uri( mw.util.getUrl( this.pageName ) ) )
|
||||
.extend( { action: 'submit' } );
|
||||
this.events = new ve.init.mw.TargetEvents( this );
|
||||
this.events = { track: $.noop, trackActivationStart: $.noop, trackActivationComplete: $.noop };
|
||||
|
||||
this.preparedCacheKeyPromise = null;
|
||||
this.clearState();
|
||||
|
|
Loading…
Reference in a new issue