mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
removing object comprehensions from CoffeeScript, they were necessitating the generation of too much ugly JS
This commit is contained in:
parent
8ea75290b5
commit
13fc8aea04
14 changed files with 128 additions and 211 deletions
|
@ -1,20 +0,0 @@
|
|||
(function(){
|
||||
var __a, __b, __c, age, ages, child, years_old;
|
||||
years_old = {
|
||||
max: 10,
|
||||
ida: 9,
|
||||
tim: 11
|
||||
};
|
||||
ages = (function() {
|
||||
__a = years_old;
|
||||
__b = [];
|
||||
for (child in __a) {
|
||||
if (__a.hasOwnProperty(child)) {
|
||||
age = __a[child];
|
||||
__c = child + " is " + age;
|
||||
__b.push(__c);
|
||||
}
|
||||
}
|
||||
return __b;
|
||||
})();
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue