Posted By

omerta83 on 07/08/10


Tagged

javascript jquery


Versions (?)

How to change context of a function dynamically


 / Published in: JavaScript
 

  1. var obj = { method: function(){} };
  2. $("#foo").click( jQuery.proxy( obj, "method" ) );
  3. $("#foo").unbind( "click", obj.method );
  4.  

Report this snippet  

You need to login to post a comment.