>
> My original intent was to find a way to cause the instantiation of a
> class to pass the name of that class to an __autoload function so that
> the __autoload function could load the javascript that contains that
> class. So __autoload() needs to be passed the name of the instantiated
> class.
>
>
As many people already said - that is simply not possible with JS. you
cannot override the new operator, and you cannot add behavior to it.
You simply cannot use an object's identifier (whether with new, passing a
reference or calling it as a function) without loading it first.

all you can do is try to fake it with the dependencies...


-- 
Subscription settings: 
http://groups.google.com/group/mootools-users/subscribe?hl=en

Reply via email to