Dear Qooxdoo Community,

I am trying to implement a fancy Window pooling mechanism,
which allows me not only to reuse previously created windows,
but also make sure only one instance is open at a time, re-focusing
if opened and reopening only if closed.

I have windows which are opened with different constructor parameters
and I sometimes would like to re-use them, by calling a method I defined
which alters the parameters.

My problem / question is the following - Is there a way to call the
constructor
of a window, in a way similar to using the apply method on functions? I
would
like pass an arguments array to a constructor which expects sometimes more
than
one variable. I'm not sure how I should do that since var obj = new
clazz(args)
will only transfer one argument called args.

I hope this question is more clear than confusing. Sorry if this is an easy
/trivial question.
I am only beginning to know JavaScript's "black magic" part.

Thanks,
Omri

--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Creating-a-window-pooling-and-reusing-mechanism-tp7580228.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to