I was trying to port over a ASP.Net ajax behavior into a jQuery plugin. A piece of puzzle that remains solving is to find a substitute for Function.createDelegate
in jQuery.
I need something like this in jQuery:
this.$delegateOnClick = Function.createDelegate(this, this.fireOnClick);
Is jQuery .delegate
method the way to go?
Or is it this post: Controlling the value of 'this' in a jQuery event