mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
DesktopArticleTarget#activate: Rename pageTarget to target
Change-Id: Iae71a050058afb2c1111a99ede5b969afbf5aca6
This commit is contained in:
parent
fecdc29a38
commit
bb57348a9e
|
@ -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' );
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue