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

Change subject: ToolContextItem: Use the target's command registry
......................................................................


ToolContextItem: Use the target's command registry

Change-Id: I32ae2b2217e862326b2db7cce83ad7686b34430f
---
M src/ui/contextitems/ve.ui.ToolContextItem.js
1 file changed, 1 insertion(+), 1 deletion(-)

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



diff --git a/src/ui/contextitems/ve.ui.ToolContextItem.js 
b/src/ui/contextitems/ve.ui.ToolContextItem.js
index 4a976f5..866fb84 100644
--- a/src/ui/contextitems/ve.ui.ToolContextItem.js
+++ b/src/ui/contextitems/ve.ui.ToolContextItem.js
@@ -38,7 +38,7 @@
  * @inheritdoc
  */
 ve.ui.ToolContextItem.prototype.getCommand = function () {
-       return ve.ui.commandRegistry.lookup( this.tool.static.commandName );
+       return ve.init.target.commandRegistry.lookup( 
this.tool.static.commandName );
 };
 
 /**

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I32ae2b2217e862326b2db7cce83ad7686b34430f
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Jforrester <[email protected]>
Gerrit-Reviewer: Esanders <[email protected]>
Gerrit-Reviewer: Trevor Parscal <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to