From bb57348a9ea226eaad84ccde494cf86a5e8d1b4e Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Wed, 29 Jul 2015 15:03:48 +0100 Subject: [PATCH] DesktopArticleTarget#activate: Rename pageTarget to target Change-Id: Iae71a050058afb2c1111a99ede5b969afbf5aca6 --- modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js index 7161cb26c8..5aefd8d291 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js @@ -285,7 +285,7 @@ ve.init.mw.DesktopArticleTarget.prototype.unbindHandlers = function () { */ ve.init.mw.DesktopArticleTarget.prototype.activate = function ( dataPromise ) { var surface, - pageTarget = this; + target = this; if ( !this.active && !this.activating ) { this.activating = true; @@ -300,7 +300,7 @@ ve.init.mw.DesktopArticleTarget.prototype.activate = function ( dataPromise ) { // We have to focus the page after hiding the original content, otherwise // in firefox the contentEditable container was below the view page, and // 'focus' scrolled the screen down. - pageTarget.getSurface().getView().focus(); + target.getSurface().getView().focus(); } ).fail( function () { $( 'html' ).removeClass( 've-activating' ); } );