I have something like this:
var Something = function(){ this.render = function(){}; $(window).resize(function(){ this.render(); }); }
FYI the ability to control this is coming in the next version of JQuery