r92211 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92210‎ | r92211 | r92212 >
Date:22:55, 14 July 2011
Author:tparscal
Status:ok (Comments)
Tags:
Comment:
Fixed variable redeclaration
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.Content.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.Content.js
@@ -223,8 +223,7 @@
224224 throw 'Invalid stack error. An element is missing from the stack.';
225225 }
226226 // Close each already opened annotation
227 - var i;
228 - for ( i = stack.length - 1; i >= depth + 1; i-- ) {
 227+ for ( var i = stack.length - 1; i >= depth + 1; i-- ) {
229228 out += typeof renderers[stack[i].type]['close'] === 'function'
230229 ? renderers[stack[i].type]['close']( stack[i].data )
231230 : renderers[stack[i].type]['close'];
@@ -234,8 +233,7 @@
235234 ? renderers[type]['close']( annotation.data )
236235 : renderers[type]['close'];
237236 // Re-open each previously opened annotation
238 - var i;
239 - for ( i = depth + 1; i < stack.length; i++ ) {
 237+ for ( var i = depth + 1; i < stack.length; i++ ) {
240238 out += typeof renderers[stack[i].type]['open'] === 'function'
241239 ? renderers[stack[i].type]['open']( stack[i].data )
242240 : renderers[stack[i].type]['open'];

Comments

#Comment by Hashar (talk | contribs)   10:20, 15 July 2011

Looks like I have messed up the file thanks to jslint :b

Status & tagging log