yomybaby / atom-titanium

[DEPRECATED] Atom package for Titanium Alloy
https://atom.io/packages/titanium-alloy
MIT License
49 stars 11 forks source link

Suggested feature #76

Open phobeous opened 6 years ago

phobeous commented 6 years ago

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: