From cc1009dc0d3007b71299f6b804776c698f7f534e Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Mon, 23 Mar 2015 15:54:13 +0000 Subject: [PATCH] Remove paragraph unwrapping, moved to parent class Depends on Ib04234f740 in VisualEditor. Change-Id: I542f9e73f5fe3713a91ca5794d175936d873038d --- modules/VisualEditor/ve.ce.MWMathNode.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/modules/VisualEditor/ve.ce.MWMathNode.js b/modules/VisualEditor/ve.ce.MWMathNode.js index 91dee82f9..aa523a9e4 100644 --- a/modules/VisualEditor/ve.ce.MWMathNode.js +++ b/modules/VisualEditor/ve.ce.MWMathNode.js @@ -43,16 +43,9 @@ ve.ce.MWMathNode.prototype.onSetup = function () { this.$element.addClass( 've-ce-mwMathNode' ); }; -/** */ -ve.ce.MWMathNode.prototype.onParseSuccess = function ( deferred, response ) { - var data = response.visualeditor, contentNodes = this.$( data.content ).get(); - if ( contentNodes[0] && contentNodes[0].childNodes ) { - contentNodes = Array.prototype.slice.apply( contentNodes[0].childNodes ); - } - deferred.resolve( contentNodes ); -}; - -/** */ +/** + * @inheritdoc + */ ve.ce.MWMathNode.prototype.afterRender = function () { var $img, node = this;