I have a search input that listens to keyup and change to trigger an update of a listview via Ajax.
keyup
change
Looks like this:
input.on
Any reason for listening to keyUp in addition to change? Maybe what really matters is just one of these events.
keyUp
If not, I guess you will have to use a closure as you suggested.