merging in satyr's fix for #653

This commit is contained in:
Jeremy Ashkenas
2010-09-27 22:17:46 -04:00
parent a3adc9c1b6
commit 8568441221
2 changed files with 4 additions and 3 deletions

View File

@@ -57,7 +57,7 @@
var compiled, pair, reference;
options || (options = {});
pair = (function() {
if (!(this.isComplex())) {
if (!this.isComplex()) {
return [this, this];
} else if (this instanceof ValueNode && options.assignment) {
return this.cacheIndexes(o);
@@ -697,7 +697,7 @@
vars = this.compileVariables(merge(o, {
indent: idt
}));
if (this.fromNum && this.toNum && (Math.abs(+this.fromNum - +this.toNum) <= 20)) {
if (this.fromNum && this.toNum && (Math.abs(this.fromNum - this.toNum) <= 20)) {
range = (function() {
_result = []; _ref2 = +this.fromNum; _ref3 = +this.toNum;
for (var _i = _ref2; _ref2 <= _ref3 ? _i <= _ref3 : _i >= _ref3; _ref2 <= _ref3 ? _i += 1 : _i -= 1){ _result.push(_i); }