Hello and congrats again for this superb ATOM plugin. I'd like to suggest to you to add a feature that I think is very much useful. Right now, when you press CMD+click (mac) on Alloy XML view file over a (e.g.) a onClick attribute value, your plugin suggest to "Generate Handler Function" if there is not an existing one. This is very much cool, but I use to declare event handlers as vars to debounce them:
var myButtonClick = _.debounce(_myButtonClickHandler, ...)
So in my view file, the code looks like this:
So, as you can see, I've declared an event handler, but indirectly, via a symbol. Could you check if not only a function is declared in JS AST, but any symbol (function or variable)? I think this could be very useful.
Hello and congrats again for this superb ATOM plugin. I'd like to suggest to you to add a feature that I think is very much useful. Right now, when you press CMD+click (mac) on Alloy XML view file over a (e.g.) a onClick attribute value, your plugin suggest to "Generate Handler Function" if there is not an existing one. This is very much cool, but I use to declare event handlers as vars to debounce them:
var myButtonClick = _.debounce(_myButtonClickHandler, ...)
So in my view file, the code looks like this:
So, as you can see, I've declared an event handler, but indirectly, via a symbol. Could you check if not only a function is declared in JS AST, but any symbol (function or variable)? I think this could be very useful.
Thanks!