http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97953
Revision: 97953
Author: inez
Date: 2011-09-23 20:30:23 +0000 (Fri, 23 Sep 2011)
Log Message:
-----------
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: trunk/parsers/wikidom/lib/synth/es.Range.js
===================================================================
--- trunk/parsers/wikidom/lib/synth/es.Range.js 2011-09-23 20:20:41 UTC (rev
97952)
+++ trunk/parsers/wikidom/lib/synth/es.Range.js 2011-09-23 20:30:23 UTC (rev
97953)
@@ -12,7 +12,7 @@
*/
es.Range = function( from, to ) {
this.from = from || 0;
- this.to = to || from;
+ this.to = typeof to === 'undefined' ? this.from : to;
this.normalize();
};
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs