Get rid of range parameter in ve.ce.TextNode.prototype.getHtml as it is

not being used anyway.

Change-Id: I7c54d35001fa0db6d7ab9d12f35ab2d841016f0d
This commit is contained in:
Inez Korczynski 2012-05-02 14:21:41 -07:00
parent dd6094842e
commit ff40652099

View file

@ -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;