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

caught a close call bug with object comprehensions and not specifying the value

This commit is contained in:
Jeremy Ashkenas 2010-01-10 17:44:19 -05:00
parent bb5bf7f94f
commit 24408c785a
5 changed files with 22 additions and 19 deletions

View file

@ -1,11 +1,12 @@
(function(){
var __a, __b, globals, name, property;
var __a, __b, globals, name;
// The first ten global properties.
globals = ((function() {
__b = []; __a = window;
for (name=0; name<__a.length; name++) {
property = __a[name];
__b.push(name);
for (name in __a) {
if (__a.hasOwnProperty(name)) {
__b.push(name);
}
}
return __b;
})()).slice(0, 10);