r100827 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100826‎ | r100827 | r100828 >
Date:17:15, 26 October 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Added skeleton function for select - someone should write this code!
Modified paths:
  • /trunk/parsers/wikidom/lib/hype/models/es.DocumentModel.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/hype/models/es.DocumentModel.js
@@ -659,6 +659,19 @@
660660 };
661661
662662 /**
 663+ * Gets the affected nodes and the range of data they occupy.
 664+ */
 665+es.DocumentModel.prototype.select = function( range, includeSubRanges ) {
 666+ range.normalize();
 667+ var result = {
 668+ 'nodes': [],
 669+ 'range': new es.Range()
 670+ };
 671+ // Add list of highest-common-level nodes that are covered by range to results.nodes
 672+ // Set range from beginning of first node to the end of the last node
 673+};
 674+
 675+/**
663676 * Gets the element object of a node.
664677 *
665678 * @method

Status & tagging log