r101888 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101887‎ | r101888 | r101889 >
Date:21:52, 3 November 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Fixed some documentation
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/bases/es.DocumentBranchNode.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/bases/es.DocumentBranchNode.js
@@ -4,7 +4,7 @@
55 * @class
66 * @abstract
77 * @constructor
8 - * @param {es.DocumentBranchNode[]} nodes List of document nodes to initially add
 8+ * @param {es.DocumentNode[]} nodes List of document nodes to initially add
99 */
1010 es.DocumentBranchNode = function( nodes ) {
1111 this.children = es.isArray( nodes ) ? nodes : [];
@@ -17,7 +17,7 @@
1818 *
1919 * @abstract
2020 * @method
21 - * @returns {es.DocumentBranchNode[]} List of document nodes
 21+ * @returns {es.DocumentNode[]} List of document nodes
2222 */
2323 es.DocumentBranchNode.prototype.getChildren = function() {
2424 return this.children;
@@ -62,7 +62,7 @@
6363 * TODO: Rewrite this method to not use recursion, because the function call overhead is expensive
6464 *
6565 * @method
66 - * @param {es.DocumentModelNode} node Node to get offset of
 66+ * @param {es.DocumentNode} node Node to get offset of
6767 * @param {Boolean} [shallow] Do not iterate into child nodes of child nodes
6868 * @returns {Integer} Offset of node or -1 of node was not found
6969 */
@@ -98,7 +98,7 @@
9999 * @method
100100 * @param {Integer} offset Offset get node for
101101 * @param {Boolean} [shallow] Do not iterate into child nodes of child nodes
102 - * @returns {es.DocumentModelNode|null} Node at offset, or null if non was found
 102+ * @returns {es.DocumentNode|null} Node at offset, or null if non was found
103103 */
104104 es.DocumentBranchNode.prototype.getNodeFromOffset = function( offset, shallow ) {
105105 if ( this.children.length ) {

Status & tagging log