Fixed the last array indexOf call that I could find

This commit is contained in:
Roan Kattouw 2011-11-15 16:27:14 +00:00
parent eff198ff1d
commit 5d619ac6cf

View file

@ -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.';