Closed floo51 closed 11 years ago
Thanks!!!!
I've been thinking in this feature for a while.
I was not sure what should be returned on each callback function or what the context of each callback should be. So for a long time callbacks where implemented but not documented. As of now I'm still unsure what's the best option for this. What do you think?
As for this pull request, I can't merge it since you modified the .js directly and the source code is in coffeescript.
From what i've seen in most jquery features / plugins, "this", in handlers, is always refering to the initial selector you applied the function to.
About the pull request, didn't even noticed it was in CS, my bad ! Gonna take a look at the CS source and modify it accordingly when i get some free time.
I can probably fix it using your commit as a blueprint if you are busy.
Sorry for the late pull, everything has been merged into master now. Thanks a lot for this.
Call of the handlers (clicked, selected...) through call function passing the initial selector as this.
Makes it easier to do things like :