Use new executeCommand method

Change-Id: I24afd6c94c3224a3ae1f86204ddc16c726833c7c
This commit is contained in:
Ed Sanders 2016-04-12 14:56:45 +01:00
parent 92bd24474c
commit 3f456b1931

View file

@ -55,8 +55,7 @@ ve.ui.MWMathContextItem.static.commandName = 'mathDialog';
* Handle inline edit button click events.
*/
ve.ui.MWMathContextItem.prototype.onInlineEditButtonClick = function () {
var command = ve.init.target.commandRegistry.lookup( 'mathInspector' );
command.execute( this.context.getSurface() );
this.context.getSurface().executeComamnd( 'mathInspector' );
};
/* Registration */