VE: Move hash changes to the rendering hash
Depends on I5d42943a0 in VE core. Bug: T114689 Change-Id: Ib64a1184132fbf62f38c6bd5dde689acff7b8ae5
This commit is contained in:
parent
d6931f563e
commit
905a834be2
|
@ -46,7 +46,7 @@ ve.ce.MWMathNode.prototype.onSetup = function () {
|
|||
};
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
* @inheritdoc ve.ce.GeneratedContentNode
|
||||
*/
|
||||
ve.ce.MWMathNode.prototype.afterRender = function () {
|
||||
var $img,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue