jenkins-bot has submitted this change and it was merged.

Change subject: Use target-specific command registry for lookup
......................................................................


Use target-specific command registry for lookup

Only use was in MWHelpPopupTool#onKeyboardShortcutsClick.

Depends on Ie24369b9 in core.

Change-Id: I630d3e55057ddf6f87e39ab2e99e93a71bd1d8bb
---
M modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jforrester: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js 
b/modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js
index 3afd69b..4f686a8 100644
--- a/modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js
+++ b/modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js
@@ -221,7 +221,7 @@
  */
 ve.ui.MWHelpPopupTool.prototype.onKeyboardShortcutsClick = function () {
        this.popup.toggle( false );
-       ve.ui.commandRegistry.lookup( 'commandHelp' ).execute( 
this.toolbar.getSurface() );
+       ve.init.target.commandRegistry.lookup( 'commandHelp' ).execute( 
this.toolbar.getSurface() );
 };
 
 /* Registration */

-- 
To view, visit https://gerrit.wikimedia.org/r/228634
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I630d3e55057ddf6f87e39ab2e99e93a71bd1d8bb
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to