mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
First draft of recompiling examples for 0.9.9
This commit is contained in:
parent
99c06b5cda
commit
0e5dd3d557
27 changed files with 501 additions and 2184 deletions
|
@ -1,4 +1,4 @@
|
|||
var _i, _len, _result, cubes, list, math, num, number, opposite, race, square;
|
||||
var _i, _len, cubes, list, math, num, number, opposite, race, square;
|
||||
var __slice = Array.prototype.slice;
|
||||
number = 42;
|
||||
opposite = true;
|
||||
|
@ -24,11 +24,7 @@ race = function(winner) {
|
|||
if (typeof elvis !== "undefined" && elvis !== null) {
|
||||
alert("I knew it!");
|
||||
}
|
||||
cubes = (function() {
|
||||
_result = [];
|
||||
for (_i = 0, _len = list.length; _i < _len; _i++) {
|
||||
num = list[_i];
|
||||
_result.push(math.cube(num));
|
||||
}
|
||||
return _result;
|
||||
})();
|
||||
for (_i = 0, _len = list.length; _i < _len; _i++) {
|
||||
num = list[_i];
|
||||
cubes = math.cube(num);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue