Many thanks for the link!
In between times, I also found a solution - a bit like the example you
suggested finally:
var fun = new Function("args","return new "+className+"("+function()
{
var fp=true; var toret='';
for (var i=0,lim=myArr.length; i<lim; i++)
{
if (fp) fp=false;
else toret+=',';
toret+="args[i]";
}
}()+
");");
var widget = fun(myArr);
Regards,
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-tp5549420p5549799.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