beautify_js
This commit is contained in:
parent
0febe4f5fd
commit
5c2f32e184
208 changed files with 3891 additions and 1474 deletions
|
@ -2,18 +2,18 @@ function makeArmy() {
|
|||
|
||||
var shooters = [];
|
||||
|
||||
for(var i=0; i<10; i++) {
|
||||
for (var i = 0; i < 10; i++) {
|
||||
|
||||
var shooter = (function(x) {
|
||||
|
||||
return function() {
|
||||
alert( x );
|
||||
alert(x);
|
||||
};
|
||||
|
||||
})(i);
|
||||
|
||||
shooters.push(shooter);
|
||||
shooters.push(shooter);
|
||||
}
|
||||
|
||||
return shooters;
|
||||
}
|
||||
return shooters;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue