Skip to content

Instantly share code, notes, and snippets.

@tgk
Created December 7, 2011 13:31
Show Gist options
  • Save tgk/1442815 to your computer and use it in GitHub Desktop.
Save tgk/1442815 to your computer and use it in GitHub Desktop.
fns = [];
_ref2 = ["A", "B", "C"];
_fn = function(ch) {
return fns.push(function() {
return console.log(ch);
});
};
for (_k = 0, _len3 = _ref2.length; _k < _len3; _k++) {
ch = _ref2[_k];
_fn(ch);
}
for (_l = 0, _len4 = fns.length; _l < _len4; _l++) {
f = fns[_l];
f();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment