1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

optimizing comprehensions source references

This commit is contained in:
Jeremy Ashkenas 2010-10-06 21:13:11 -04:00
parent 5605ba32e3
commit d4dac214ab
11 changed files with 70 additions and 86 deletions

View file

@ -1,9 +1,9 @@
var _ref, _result, globals, name;
var _result, globals, name;
var __hasProp = Object.prototype.hasOwnProperty;
globals = (function() {
_result = []; _ref = window;
for (name in _ref) {
if (!__hasProp.call(_ref, name)) continue;
_result = [];
for (name in window) {
if (!__hasProp.call(window, name)) continue;
_result.push(name);
}
return _result;