if statement + single line ending by an empty function generate wrong coffeescript
gissehel opened this issue · 2 comments
gissehel commented
if (mystruct) {
mystruct.onAction = function() {};
}
generates
mystruct.onAction = -> if mystruct
which generate a coffescript parse error. It should generates :
if mystruct
mystruct.onAction = ->