Esanders has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/378018 )
Change subject: Fix AuthorListPopupTool's surface setting
......................................................................
Fix AuthorListPopupTool's surface setting
Change-Id: I03ff144e446117be625e59a1bacd42b3f8d279ce
---
M src/ui/tools/ve.ui.AuthorListPopupTool.js
1 file changed, 2 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor
refs/changes/18/378018/1
diff --git a/src/ui/tools/ve.ui.AuthorListPopupTool.js
b/src/ui/tools/ve.ui.AuthorListPopupTool.js
index a62b263..a7238d7 100644
--- a/src/ui/tools/ve.ui.AuthorListPopupTool.js
+++ b/src/ui/tools/ve.ui.AuthorListPopupTool.js
@@ -31,8 +31,6 @@
// Events
this.toolbar.connect( this, { surfaceChange: 'onSurfaceChange' } );
- this.setup( this.toolbar.getSurface() );
-
this.$element.addClass( 've-ui-authorListPopupTool' );
};
@@ -42,8 +40,8 @@
/* Methods */
-ve.ui.AuthorListPopupTool.prototype.onSurfaceChange = function ( surface ) {
- this.setup( surface );
+ve.ui.AuthorListPopupTool.prototype.onSurfaceChange = function ( oldSurface,
newSurface ) {
+ this.setup( newSurface );
};
/**
--
To view, visit https://gerrit.wikimedia.org/r/378018
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I03ff144e446117be625e59a1bacd42b3f8d279ce
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits