[jQuery] Re: How to save "this" context in callbacks

2009-02-07 Thread pete higgins
I still like the rescope function. :) http://groups.google.com/group/jquery-en/browse_thread/thread/43644231b5764f12?q=rescope+jquery#ca1b1069580a3f25 On Sat, Feb 7, 2009 at 8:03 PM, Karl Rudd wrote: > > Assign "this" to a local variable. > > function blah() { > var blahThis = this; > someEx

[jQuery] Re: How to save "this" context in callbacks

2009-02-07 Thread Karl Rudd
Sorry, cut and paste error there. Corrected: function blah() { var blahThis = this; someExternalFunction( function() { blahThis.doSomething(); }); } Karl Rudd On Sun, Feb 8, 2009 at 12:03 PM, Karl Rudd wrote: > Assign "this" to a local variable. > > function blah() { > var blahThis = thi

[jQuery] Re: How to save "this" context in callbacks

2009-02-07 Thread Karl Rudd
Assign "this" to a local variable. function blah() { var blahThis = this; someExternalFunction( function() { blahThis.doSomething(); } } Karl Rudd On Sun, Feb 8, 2009 at 9:28 AM, Alexander wrote: > > Goodday! > Could anyone tell me how to save "this" context inside callback? > Here is