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:
Alex Monk 2015-10-01 20:35:25 +01:00 committed by Alex Monk
parent e14c8e11cf
commit a46b7a819e
2 changed files with 2 additions and 1 deletions

View file

@ -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' );

View file

@ -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();