r97953 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97952‎ | r97953 | r97954 >
Date:20:30, 23 September 2011
Author:inez
Status:deferred
Tags:
Comment:
Fix bug in es.Range (remember that parameter to may have value int 0).
Modified paths:
  • /trunk/parsers/wikidom/lib/synth/es.Range.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/synth/es.Range.js
@@ -12,7 +12,7 @@
1313 */
1414 es.Range = function( from, to ) {
1515 this.from = from || 0;
16 - this.to = to || from;
 16+ this.to = typeof to === 'undefined' ? this.from : to;
1717 this.normalize();
1818 };
1919

Status & tagging log