mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
expressions nested in expressions made for some indentation issues -- statements are now responsible for their own leading indentation
This commit is contained in:
parent
bfd7455db4
commit
f299972713
8 changed files with 102 additions and 78 deletions
|
@ -23,10 +23,13 @@
|
|||
};
|
||||
// Array comprehensions:
|
||||
__a = list;
|
||||
__d = [];
|
||||
for (__b=0, __c=__a.length; __b<__c; __b++) {
|
||||
num = __a[__b];
|
||||
__d[__b] = math.cube(num);
|
||||
__c = [];
|
||||
for (__b in __a) {
|
||||
if (__a.hasOwnProperty(__b)) {
|
||||
num = __a[__b];
|
||||
__d = math.cube(num);
|
||||
__c.push(__d);
|
||||
}
|
||||
}
|
||||
cubed_list = __d;
|
||||
cubed_list = __c;
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue