Use target-specific command registry for lookup

Only use was in MWHelpPopupTool#onKeyboardShortcutsClick.

Depends on Ie24369b9 in core.

Change-Id: I630d3e55057ddf6f87e39ab2e99e93a71bd1d8bb
This commit is contained in:
Ed Sanders 2015-07-31 16:24:51 +01:00 committed by Jforrester
parent dedc107507
commit 022fa98856

View file

@ -221,7 +221,7 @@ ve.ui.MWHelpPopupTool.prototype.onFeedbackClick = function () {
*/
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 */