Hello, I've looked at the event scoping feature on 1.4 roadmap and I'm wondering if we really need to add a scope parameter?
Here's what I would like to propose as a solution that would not break with existing designs: $("#elmentid").bind('click', [obj, fn]); $("#elmentid").bind('click', data, [obj, fn]); the scoped callback would take the form [obj, fn] example: var myobj = { property: "value", saveHandle: function() { // code here } }; var handler = function() { // code here } $("#elementid").bind('click',[myobj,handler]); // callback handler with myobj scope $("#elementid").bind('click',[myobj,"saveHandle"]); // callback saveHandle on myobj $("#elementid").bind('click',[myobj,myobj.saveHandle]); // callback saveHandle on myobj Callback with data and scope var data = {property1:"value1", property2:'' } $("#elementid").bind('click', data, [myobj,"saveHandle"]); // callback saveHandle on myobj --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---