Merge "VE: Move hash changes to the rendering hash"

This commit is contained in:
jenkins-bot 2015-10-07 19:18:15 +00:00 committed by Gerrit Code Review
commit 11b0f02dd1
1 changed files with 5 additions and 4 deletions

View File

@ -33,14 +33,15 @@ ve.dm.MWMathNode.static.tagName = 'img';
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
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.
if ( hashObject.mw.attrs ) {
delete hashObject.mw.attrs.id;