mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 03:21:20 -05:00
implementing grayrest's suggested cleanup for object comprehensions
This commit is contained in:
@@ -79,12 +79,10 @@
|
||||
var __a, __b, key, val;
|
||||
return ((function() {
|
||||
__a = []; __b = this.variables;
|
||||
for (key in __b) {
|
||||
for (key in __b) if (__hasProp.call(__b, key)) {
|
||||
val = __b[key];
|
||||
if (__hasProp.call(__b, key)) {
|
||||
if (val === 'var') {
|
||||
__a.push(key);
|
||||
}
|
||||
if (val === 'var') {
|
||||
__a.push(key);
|
||||
}
|
||||
}
|
||||
return __a;
|
||||
@@ -96,12 +94,10 @@
|
||||
var __a, __b, key, val;
|
||||
return ((function() {
|
||||
__a = []; __b = this.variables;
|
||||
for (key in __b) {
|
||||
for (key in __b) if (__hasProp.call(__b, key)) {
|
||||
val = __b[key];
|
||||
if (__hasProp.call(__b, key)) {
|
||||
if (val.assigned) {
|
||||
__a.push([key, val.value]);
|
||||
}
|
||||
if (val.assigned) {
|
||||
__a.push([key, val.value]);
|
||||
}
|
||||
}
|
||||
return __a;
|
||||
|
||||
Reference in New Issue
Block a user