VE: Move hash changes to the rendering hash

Depends on I5d42943a0 in VE core.

Bug: T114689
Change-Id: Ib64a1184132fbf62f38c6bd5dde689acff7b8ae5
This commit is contained in:
Ed Sanders 2015-10-01 15:37:21 +01:00 committed by Jforrester
parent d6931f563e
commit 905a834be2
2 changed files with 6 additions and 5 deletions

View File

@ -46,7 +46,7 @@ ve.ce.MWMathNode.prototype.onSetup = function () {
};
/**
* @inheritdoc
* @inheritdoc ve.ce.GeneratedContentNode
*/
ve.ce.MWMathNode.prototype.afterRender = function () {
var $img,

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;