Nice work but I'm not sure it does quite what you think it does or at
least it doesn't do quite what I thought it did when I looked at it.
If you can solve this last problem, you might have a really nice
plugin for autoloading.

When I place a console.log statement in the __autoload() function and
comment out

if (!window[cls])

http://jsfiddle.net/CsJ6C/14/

so that __autoload() is always called (for testing purposes), the
"name" written to the console is "Options". What needs to be passed to
__autoload() is the name of the class.


On Apr 18, 7:29 am, אריה גלזר <[email protected]> wrote:
> So, after some hard trouble i came up with this "proof of 
> concept":http://jsfiddle.net/CsJ6C/13/
>
> a few notes:
> 1. i kept your __autoload syntax, but you will need to implement it.
> 2. In order for this to work you will need to pass strings for Implements as
> Extends, not the Objects (which obviously are not yet loaded).
> 3. i really haven't tried this out other than a simple use of Options, so i
> don't know if i'm even doing this the right way (the real issue is passing
> the arguments without using the new operator...)
> -----------
> אריה גלזר
> 052-5348-561
> 5561

> - Show quoted text -


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

Reply via email to