[jQuery] Re: jQuery Equivalent of Prototype Function.bind

2010-01-06 Thread Scott Sauyet
On Jan 5, 9:43 am, Bruce wrote: > Is there a jQuery way of doing this Prototype bind? I don't know about built-in means, but here is one that Google provides: http://groups.google.com/group/jquery-en/msg/0980e113f097720a -- Scott

[jQuery] Re: jQuery Equivalent of Prototype Function.bind

2010-01-05 Thread Johan Borestad
I'm not that good at Prototype at all, but wouldn't this be equivalent? setTimeout(function(){ myFunction.apply(this) } , 1000) / Johan On Jan 5, 3:43 pm, Bruce wrote: > Is there a jQuery way of doing this Prototype bind? > > var func = myFunction; > setTimeout(func.bind(this), 1000); > > T