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:
parent
5605ba32e3
commit
d4dac214ab
11 changed files with 70 additions and 86 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue