r103317 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103316‎ | r103317 | r103318 >
Date:12:51, 16 November 2011
Author:catrope
Status:deferred
Tags:
Comment:
Fix stupid mistake that broke traverseLeafNodes() in IE
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
@@ -81,7 +81,7 @@
8282 throw "from parameter passed to traverseLeafNodes() must be a descendant";
8383 }
8484 // Find the index of n in p
85 - i = p.getChildren().indexOf( n );
 85+ i = p.indexOf( n );
8686 if ( i === -1 ) {
8787 // This isn't supposed to be possible
8888 throw "Tree corruption detected: node isn't in its parent's children array";

Status & tagging log