https://www.mediawiki.org/wiki/Special:Code/MediaWiki/103317
Revision: 103317
Author: catrope
Date: 2011-11-16 12:51:31 +0000 (Wed, 16 Nov 2011)
Log Message:
-----------
Fix stupid mistake that broke traverseLeafNodes() in IE
Modified Paths:
--------------
trunk/extensions/VisualEditor/modules/es/bases/es.DocumentBranchNode.js
Modified:
trunk/extensions/VisualEditor/modules/es/bases/es.DocumentBranchNode.js
===================================================================
--- trunk/extensions/VisualEditor/modules/es/bases/es.DocumentBranchNode.js
2011-11-16 12:40:48 UTC (rev 103316)
+++ trunk/extensions/VisualEditor/modules/es/bases/es.DocumentBranchNode.js
2011-11-16 12:51:31 UTC (rev 103317)
@@ -81,7 +81,7 @@
throw "from parameter passed to
traverseLeafNodes() must be a descendant";
}
// Find the index of n in p
- i = p.getChildren().indexOf( n );
+ i = p.indexOf( n );
if ( i === -1 ) {
// This isn't supposed to be possible
throw "Tree corruption detected: node isn't in
its parent's children array";
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs