Return to Snippet

Revision: 28466
at July 8, 2010 17:30 by omerta83


Initial Code
var obj = { method: function(){} };  
$("#foo").click( jQuery.proxy( obj, "method" ) );  
$("#foo").unbind( "click", obj.method );

Initial URL

                                

Initial Description

                                

Initial Title
How to change context of a function dynamically

Initial Tags
javascript, jquery

Initial Language
JavaScript