This is my current implementation (in coffeescript, sorry): ### # @ignore(_) ### qx.Class.define 'util.Query', type: 'static'
statics: query: (filt) -> objs = qx.core.ObjectRegistry.getRegistry() _.chain(objs) .pairs() .filter((arr) -> filt(_.last(arr))) .value() You can use it like: util.Query.query obj -> obj.name is 'Window' and obj.getTitle() is 'Hello world' or in regular javascript: util.Query.query(function (obj) { return obj.name === 'Window' && obj.getTitle() === 'Hello world'; }); -- View this message in context: http://qooxdoo.678.n2.nabble.com/Quickly-reference-widgets-in-browser-and-code-tp7586543p7586561.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel