Merge "VE: Move hash changes to the rendering hash"
This commit is contained in:
commit
11b0f02dd1
|
@ -33,14 +33,15 @@ ve.dm.MWMathNode.static.tagName = 'img';
|
||||||
|
|
||||||
ve.dm.MWMathNode.static.extensionName = 'math';
|
ve.dm.MWMathNode.static.extensionName = 'math';
|
||||||
|
|
||||||
/* Static methods */
|
/* Static Methods */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritdoc
|
* @inheritdoc ve.dm.GeneratedContentNode
|
||||||
*/
|
*/
|
||||||
ve.dm.MWMathNode.static.getHashObject = function ( dataElement ) {
|
ve.dm.MWMathNode.static.getHashObjectForRendering = function ( dataElement ) {
|
||||||
// Parent method
|
// Parent method
|
||||||
var hashObject = ve.dm.MWMathNode.super.static.getHashObject.call( this, dataElement );
|
var hashObject = ve.dm.MWMathNode.super.static.getHashObjectForRendering.call( this, dataElement );
|
||||||
|
|
||||||
// The id does not affect the rendering.
|
// The id does not affect the rendering.
|
||||||
if ( hashObject.mw.attrs ) {
|
if ( hashObject.mw.attrs ) {
|
||||||
delete hashObject.mw.attrs.id;
|
delete hashObject.mw.attrs.id;
|
||||||
|
|
Loading…
Reference in New Issue