This is not a MooTools limitation but a JavaScript limitation. You
cannot use call or apply on constructor functions. Alternatively you
can pass a fixed amount of arguments like

new MyObject(arg, arg1, arg2, ...)

Or create a separate method that sets up your instance with all the
necessary functionality like

var obj = new MyObject;
obj.setup.apply(obj, arts)

On Apr 7, 1:38 pm, אריה גלזר <[email protected]> wrote:
> hey. i want to create a costum factory for a specific Class that requires me
> to pass through its mutators before passing them to the Class . the thing
> is, Class requires me to use the 'new' operator, which in turn doesn't allow
> me to use run/apply etc. so - how can i pass a modified list of paramaters
> to an object that requires the use of 'new'?
>
> hope i'm clear on this...
> -----------
> אריה גלזר052-5348-561
> 5561


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

Reply via email to