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

Reply via email to