I've been working on something similar.
It's called Array.expose. Let's say that you have an array of
elements:

a = [el1, el2, el3, ... , eln]

and then call the method expose:

a.expose('set')

then the method Array.set would actually be Array.each(function(x)
{x.set()}).
Therefore I can then do this:

a.set('html', 'hello')

Adding some way of using Array.map instead of Array.each might also be
interesting

On Feb 3, 10:04 am, Thomas Aylott <[email protected]> wrote:
> http://mootools.net/shell/nrKCz/2/
>
> Was talking to rpflo about this on IRC.
>
> See 
> #12http://net.tutsplus.com/tutorials/javascript-ajax/jquery-1-4-released...
>
> Just thought I'd share my final solution in case anyone thought it'd be neat.
>
> Personally, I don't think this sort of thing is really needed in MooTools 
> core.
> But maybe I'll make it a plugin if anyone likes it.
>
> — Thomas Aylott
>     SubtleGradient
>     MooTools

Reply via email to