self always referers to the the Window object (I think?)
this can be set based on the context (like jQuery does with event
handler functions)

FWIW, I don't find 'self' mentioned in the ECMA spec...

--Erik

On 3/13/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> the infamous ppk wrote in his blog:
>
> "I've learnt one other trick for distinguishing newbies and pros: ask
> them the difference between |this| and |self|. Usually people who just
> claim to be excellent scripters don't know the answer, while real pros do."
>
> So obviously I am not an excellent scripter, because I don't have any
> idea on the difference between those two. And I prefer discussing iton
> this instead of crawling through the ECMA spec.
>
> Anyone?
>
> --
> Jörn Zaefferer
>
> http://bassistance.de
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to