Index: trunk/extensions/VisualEditor/modules/es/views/es.ContentView.js |
— | — | @@ -180,7 +180,7 @@ |
181 | 181 | renderers[type].close( annotation.data ) : renderers[type].close; |
182 | 182 | } else { |
183 | 183 | // Find the annotation in the stack |
184 | | - var depth = stack.indexOf( annotation ), |
| 184 | + var depth = es.arrayIndexOf( stack, annotation ), |
185 | 185 | i; |
186 | 186 | if ( depth === -1 ) { |
187 | 187 | throw 'Invalid stack error. An element is missing from the stack.'; |