Minor fixes for VE Math code

* Update MWMathInspectorTool for deferMsg refactor
* Update ce.MWMathNode to add primaryCommandName

Change-Id: I344e3ef498c504d07b1f42954ab44b82ed3c0a50
This commit is contained in:
Roan Kattouw 2014-03-19 19:31:41 -07:00
parent fcf045f832
commit e7be4f5ba7
2 changed files with 5 additions and 1 deletions

View File

@ -29,10 +29,13 @@ ve.ce.MWMathNode = function VeCeMWMathNode( model, config ) {
OO.inheritClass( ve.ce.MWMathNode, ve.ce.MWExtensionNode );
/* Static Properties */
ve.ce.MWMathNode.static.name = 'mwMath';
ve.ce.MWMathNode.static.primaryCommandName = 'math';
/* Methods */
/** */

View File

@ -23,7 +23,8 @@ OO.inheritClass( ve.ui.MWMathInspectorTool, ve.ui.InspectorTool );
ve.ui.MWMathInspectorTool.static.name = 'math';
ve.ui.MWMathInspectorTool.static.group = 'object';
ve.ui.MWMathInspectorTool.static.icon = 'math';
ve.ui.MWMathInspectorTool.static.titleMessage = 'math-visualeditor-mwmathinspector-title';
ve.ui.MWMathInspectorTool.static.title = OO.ui.deferMsg(
'math-visualeditor-mwmathinspector-title' );
ve.ui.MWMathInspectorTool.static.inspector = 'math';
ve.ui.MWMathInspectorTool.static.modelClasses = [ ve.dm.MWMathNode ];
ve.ui.toolFactory.register( ve.ui.MWMathInspectorTool );