I have a Class with function implements and mutators that does just this: http://blog.citycrawler.com/?p=47
On Apr 19, 9:47 pm, batman42ca <[email protected]> wrote: > On Apr 19, 11:45 am, אריה גלזר <[email protected]> wrote: > > > i'm not sure i'm following - the autoload is called for the dependencies of > > a specific class (which is obviously already loaded). Options is one of > > those classes. > > 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. > > I reworked your sample code and renamed a few things to make it > clearer what I'm talking about. > > For your code to do what I'm looking for, the output of the __autoload > log statement in my reworked version of your code should be: > > "loading class file: myClass.js" > > not > > "loading class file: Options.js" > > http://jsfiddle.net/CsJ6C/15/ > > -- > Subscription > settings:http://groups.google.com/group/mootools-users/subscribe?hl=en
