![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.javascript archiveRe: a question about jibbering.com FAQ essay on Javascript closures
From: Thomas 'PointedEars' Lahn <PointedEars@web.de>
Date: Sat Nov 12 2005 - 21:09:41 CET
lkrubner@geocities.com wrote:
> | However, code could call another function that returned a reference to
I don't think so.
> I don't get the difference. Couldn't I create an object like this:
You could, but that would probably not have a usable result. Since
a) As `myObject' is a reference to an Object object and not to a Function
hideMenu = setTimeout("[Object object]", 500);
and the like. Since `[Object object]' is syntactically incorrect code,
b) As `myObject' is neither a string nor a Function object reference,
c) none of the above (undefined behavior).
HTH
PointedEars
|