r96526 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96525‎ | r96526 | r96527 >
Date:23:48, 7 September 2011
Author:inez
Status:deferred
Tags:
Comment:
Fix lookupItemView method
Modified paths:
  • /trunk/parsers/wikidom/lib/synth/bases/es.ViewContainer.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/synth/bases/es.ViewContainer.js
@@ -92,9 +92,9 @@
9393 };
9494
9595 es.ViewContainer.prototype.lookupItemView = function( itemModel ) {
96 - for ( var i = 0; i < container.views.length; i++ ) {
 96+ for ( var i = 0; i < this.views.length; i++ ) {
9797 if ( this.views[i].getModel() === itemModel ) {
98 - return container.views[i];
 98+ return this.views[i];
9999 }
100100 }
101101 return null;

Status & tagging log