mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
continuing to document the homepage for 0.9.5 ... removing an optimization for local variables within loops.
This commit is contained in:
parent
ac9d36e444
commit
1778177195
11 changed files with 268 additions and 191 deletions
|
@ -1,15 +1,13 @@
|
|||
var food, lunch, pos, roid, roid2, _i, _j, _len, _len2, _len3, _ref, _ref2, _ref3;
|
||||
var food, lunch, pos, roid, roid2, _i, _j, _len, _len2, _len3, _ref;
|
||||
_ref = ['toast', 'cheese', 'wine'];
|
||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||
food = _ref[_i];
|
||||
lunch = eat(food);
|
||||
}
|
||||
_ref2 = asteroids;
|
||||
for (pos = 0, _len2 = _ref2.length; pos < _len2; pos++) {
|
||||
roid = _ref2[pos];
|
||||
_ref3 = asteroids;
|
||||
for (_j = 0, _len3 = _ref3.length; _j < _len3; _j++) {
|
||||
roid2 = _ref3[_j];
|
||||
for (pos = 0, _len2 = asteroids.length; pos < _len2; pos++) {
|
||||
roid = asteroids[pos];
|
||||
for (_j = 0, _len3 = asteroids.length; _j < _len3; _j++) {
|
||||
roid2 = asteroids[_j];
|
||||
if (roid !== roid2) {
|
||||
if (roid.overlaps(roid2)) {
|
||||
roid.explode();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue