mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 00:00:49 +00:00
Fixed the last array indexOf call that I could find
This commit is contained in:
parent
eff198ff1d
commit
5d619ac6cf
|
@ -180,7 +180,7 @@ es.ContentView.renderAnnotation = function( bias, annotation, stack ) {
|
|||
renderers[type].close( annotation.data ) : renderers[type].close;
|
||||
} else {
|
||||
// Find the annotation in the stack
|
||||
var depth = stack.indexOf( annotation ),
|
||||
var depth = es.arrayIndexOf( stack, annotation ),
|
||||
i;
|
||||
if ( depth === -1 ) {
|
||||
throw 'Invalid stack error. An element is missing from the stack.';
|
||||
|
|
Loading…
Reference in a new issue