From 5d619ac6cf72b6e61a70a5bb7c0bf2d5a16bdb2f Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 15 Nov 2011 16:27:14 +0000 Subject: [PATCH] Fixed the last array indexOf call that I could find --- modules/es/views/es.ContentView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/es/views/es.ContentView.js b/modules/es/views/es.ContentView.js index 27937b50b7..d65335f403 100644 --- a/modules/es/views/es.ContentView.js +++ b/modules/es/views/es.ContentView.js @@ -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.';