mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
going back to the Closure Compiler.
This commit is contained in:
parent
54d9b283fa
commit
35b6a70724
9 changed files with 480 additions and 59 deletions
|
@ -4,16 +4,18 @@ countdown = (function() {
|
|||
for (num = 10; num >= 1; num--) {
|
||||
_result.push(num);
|
||||
}
|
||||
num--;
|
||||
return _result;
|
||||
})();
|
||||
deliverEggs = function() {
|
||||
var _ref, _result2, dozen, i;
|
||||
_result2 = []; _ref = eggs.length;
|
||||
for (i = 0; (0 <= _ref ? i < _ref : i > _ref); i += 12) {
|
||||
_result2 = [];
|
||||
for (i = 0, _ref = eggs.length; (0 <= _ref ? i < _ref : i > _ref); i += 12) {
|
||||
_result2.push((function() {
|
||||
dozen = eggs.slice(i, i + 12);
|
||||
return deliver(new eggCarton(dozen));
|
||||
})());
|
||||
}
|
||||
i -= 12;
|
||||
return _result2;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue