> I'm trying to avoid needing to provide a list of classes. I trying to
> get the act of instantiating a class to trigger the loading of the
> javascript for that class if the class isn't already defined.That way,
> the dependencies automatically take care of themselves.

You, um, want to overload operator new in JS?

I  can't see any reason for that to be possible -- maybe in some freak
old  browser  or  something  (or  obvs.  if  you  build  your  own  JS
interpreter).  I  think  even  in the failed overloading proposals for
ES4, new wasn't included.

-- Sandy






-- 
To unsubscribe, reply using "remove me" as the subject.

Reply via email to