mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 19:11:22 -05:00
implementing grayrest's suggested cleanup for object comprehensions
This commit is contained in:
@@ -297,12 +297,10 @@
|
||||
})(this));
|
||||
unclosed = (function() {
|
||||
__i = []; __j = levels;
|
||||
for (key in __j) {
|
||||
for (key in __j) if (__hasProp.call(__j, key)) {
|
||||
value = __j[key];
|
||||
if (__hasProp.call(__j, key)) {
|
||||
if (value > 0) {
|
||||
__i.push(key);
|
||||
}
|
||||
if (value > 0) {
|
||||
__i.push(key);
|
||||
}
|
||||
}
|
||||
return __i;
|
||||
@@ -329,11 +327,9 @@
|
||||
stack = [];
|
||||
debt = {};
|
||||
__i = INVERSES;
|
||||
for (key in __i) {
|
||||
for (key in __i) if (__hasProp.call(__i, key)) {
|
||||
val = __i[key];
|
||||
if (__hasProp.call(__i, key)) {
|
||||
((debt[key] = 0));
|
||||
}
|
||||
((debt[key] = 0));
|
||||
}
|
||||
return this.scan_tokens((function(__this) {
|
||||
var __func = function(prev, token, post, i) {
|
||||
|
||||
Reference in New Issue
Block a user