Jforrester has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/228762

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor 
refs/changes/62/228762/1

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: newchange
Gerrit-Change-Id: I32ae2b2217e862326b2db7cce83ad7686b34430f
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Jforrester <[email protected]>

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

Reply via email to