Is there any interest in providing a parameter to $.fn.bind that would allow setting a context for the event handler?
A few people encouraged me to spread the idea around and see if it would interest the community.
The strength here is that this would allow arbitrary context setting for all events (though an edit would be needed to support $.fn.click, $.fn.keydown, and the rest) and it doesn't break backwards compatibility.
I'm a little unhappy about putting context after the handler, but if it appears before the handler, then there are two optional params in a row and when a user offers just one of the two it's unclear which they were intending. We could standardize on "one parameter between the event type and the event handler indicates you wanted foo" where the documentation indicates that foo is either event data or a context, but this is a paper thin wall and could surprise people. My solution is to put it after the handler which makes it very clear what the author's intentions were.
Thoughts?