r103187 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103186‎ | r103187 | r103188 >
Date:16:27, 15 November 2011
Author:catrope
Status:deferred
Tags:
Comment:
Fixed the last array indexOf call that I could find
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/views/es.ContentView.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/views/es.ContentView.js
@@ -180,7 +180,7 @@
181181 renderers[type].close( annotation.data ) : renderers[type].close;
182182 } else {
183183 // Find the annotation in the stack
184 - var depth = stack.indexOf( annotation ),
 184+ var depth = es.arrayIndexOf( stack, annotation ),
185185 i;
186186 if ( depth === -1 ) {
187187 throw 'Invalid stack error. An element is missing from the stack.';

Status & tagging log