rainforestapp / decaf

Coffeescript to ES.next transpiler. Now maintained over at
https://github.com/juliankrispel/decaf
MIT License
106 stars 10 forks source link

post-position `for` loses `when` statement #103

Closed mizchi closed 8 years ago

mizchi commented 8 years ago
i.deactivate() for item in items when not item.isVisible
(() => {
  for (var item in items) {
     i.deactivate();
  }
})()
eventualbuddha commented 8 years ago

This appears to happen regardless of whether the for loop is post-position or not:

for item in items when not item.isVisible
  i.deactivate()
for (let item of items) {
  i.deactivate();
}