Closed GoodForOneFare closed 8 years ago
Similar example from ui_popover.coffee
:
newStyles.base.transformOrigin.split(" ")[1..-1]
js2.coffee
newStyles.base.transformOrigin.split(" ").slice(1);
decaf
newStyles.base.transformOrigin.split(" ").slice(1, -1 + 1)
Merged in fix from mainline and published to NPM.
Decaf is generating an unnecessary second
slice
parameter when translating CS ranges with negative arguments.Simplified example
Coffeescript
js2.coffee
decaf
Problem
The js2.coffe translation produces the right result;
decaf
doesn't.Production code example
From
app_messenger.coffee
.CoffeeScript
js2.coffee
decaf