1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

fixing If/else-to-ternary with instanceof as an unparenthesized condition. JS operator precedence.

This commit is contained in:
Jeremy Ashkenas 2010-07-23 20:44:56 -07:00
parent 24a5adc898
commit de9fb7777b
5 changed files with 21 additions and 9 deletions

View file

@ -80,7 +80,7 @@
_b = array;
for (_a = 0, _c = _b.length; _a < _c; _a++) {
item = _b[_a];
item instanceof Array ? (memo = memo.concat(item)) : memo.push(item);
(item instanceof Array) ? (memo = memo.concat(item)) : memo.push(item);
}
return memo;
});