Hey,
sounds like a but of too much code for such a simple thing as it should be.
Additionally subclassing every class could be a bad idea for the performance. I
am not really sure about that but i have a bad feeling about such things.
Best,
Martin
P.S. you need to use apply or call for the base function to make it work.
Am 20.09.2010 um 11:18 schrieb benco:
>
> Hi Martin,
>
> Thanks for your reply!
>
> In fact, I also thought about another alternative solution by creating a
> temporary subclass... But I don't know if it's feasible - it seems to throw
> errors actually - and what about the performance...
>
> if (!qx.Class.isDefined("{globalnamespace}.temp_"+config.widget.className))
> qx.Class.define("{globalnamespace}.temp_"+config.widget.className,
> {
> extend : qx.Class.getByName(config.widget.className),
> construct : function(arrArgs) {this.base(arguments,arrArgs);}
> });
>
> return new
> qx.Class.getByName("{globalnamespace}.temp_"+config.widget.className)(config.widget.args);
>
> What do you think about it ?
>
> Best,
>
> BenoƮt.
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/pure-js-how-to-create-a-new-object-by-passing-args-as-array-tp5549420p5549647.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel