From ff406520991295e3a05ffcffbfe9f81ce0a81f8b Mon Sep 17 00:00:00 2001 From: Inez Korczynski Date: Wed, 2 May 2012 14:21:41 -0700 Subject: [PATCH] Get rid of range parameter in ve.ce.TextNode.prototype.getHtml as it is not being used anyway. Change-Id: I7c54d35001fa0db6d7ab9d12f35ab2d841016f0d --- modules/ve2/ce/nodes/ve.ce.TextNode.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/modules/ve2/ce/nodes/ve.ce.TextNode.js b/modules/ve2/ce/nodes/ve.ce.TextNode.js index c606fd2285..fd748ba6cf 100644 --- a/modules/ve2/ce/nodes/ve.ce.TextNode.js +++ b/modules/ve2/ce/nodes/ve.ce.TextNode.js @@ -197,18 +197,12 @@ ve.ce.LeafNode.prototype.render = function() { }; /** - * Gets an HTML rendering of a range of data within content model. + * Gets an HTML rendering of data within content model. * * @method - * @param {ve.Range} range Range of content to render * @param {String} Rendered HTML of data within content model */ -ve.ce.TextNode.prototype.getHtml = function( range ) { - if ( range ) { - range.normalize(); - } else { - range = { 'start': 0, 'end': undefined }; - } +ve.ce.TextNode.prototype.getHtml = function() { var data = this.model.getDocument().getDataFromNode( this.model ), render = ve.ce.TextNode.renderAnnotation, htmlChars = ve.ce.TextNode.htmlCharacters;