Hello Steve and welcome to the qooxdoo community,
do you have at some point references to both objects? Maybe the time you
create the second object? If yes, you can add a method to the class which
could look something like this:
attach : function(obj) {
obj.addListener("event", this.__handler, this);
}
So you could call:
obj1.attach(obj2);
Could you use something like this? In any case, there has to be a more
elegant solution than evaling on a global variable name. ;) So be sure we
find a better solution.
Best,
Martin
--
View this message in context:
http://n2.nabble.com/an-instance-of-a-class-to-add-listener-to-other-instance-tp4685170p4693912.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel