[jQuery] Re: How could I pass an object into an eval statement

2008-02-22 Thread AsymF
Yeah, I have been using them. Just had no idea setTimeout could take them. :) Thanks! On Feb 22, 2:01 am, "Karl Rudd" <[EMAIL PROTECTED]> wrote: > Welcome to the wonderful world of "closures" (which "double" as > "functions" in JavaScript), you've been using them already (perhaps > without know

[jQuery] Re: How could I pass an object into an eval statement

2008-02-21 Thread Karl Rudd
Welcome to the wonderful world of "closures" (which "double" as "functions" in JavaScript), you've been using them already (perhaps without know it) :). The setTimeout function will actually take a function rather than a string (which it then 'eval's): function someFunction( obj ) { var