Index: trunk/extensions/VisualEditor/modules/es/bases/es.DocumentBranchNode.js |
— | — | @@ -81,7 +81,7 @@ |
82 | 82 | throw "from parameter passed to traverseLeafNodes() must be a descendant"; |
83 | 83 | } |
84 | 84 | // Find the index of n in p |
85 | | - i = p.getChildren().indexOf( n ); |
| 85 | + i = p.indexOf( n ); |
86 | 86 | if ( i === -1 ) { |
87 | 87 | // This isn't supposed to be possible |
88 | 88 | throw "Tree corruption detected: node isn't in its parent's children array"; |