r100982 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100981‎ | r100982 | r100983 >
Date:15:20, 27 October 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Added getElementType to model nodes
Modified paths:
  • /trunk/parsers/wikidom/lib/hype/bases/es.DocumentModelNode.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/hype/bases/es.DocumentModelNode.js
@@ -146,6 +146,16 @@
147147 };
148148
149149 /**
 150+ * Gets the symbolic element type name.
 151+ *
 152+ * @method
 153+ * @returns {String} Symbolic name of element type
 154+ */
 155+es.DocumentModelNode.prototype.getElementType = function() {
 156+ return this.element.type;
 157+};
 158+
 159+/**
150160 * Gets the content length.
151161 *
152162 * FIXME: This method makes assumptions that a node with a data property is a DocumentModel, which

Status & tagging log