> I'm a newbie, but my comment: Is there an opportunity to add a method to
> the ClientDocument class?  To return the indexes of children that
> satisfy a certain test, e.g. is instanceof custom.Application
>   
Short answer: yes. Since JavaScript is such a malleable language you can
add functions to the prototype of a class, and then call it as a method
of instances, even if those instances existed beforehand. This also
holds true for all build-in classes in qooxdoo.

A more idiomatic (pronounce: cooler) way of doing this would be to use a
mixin (http://qooxdoo.org/documentation/mixins) implementing the desired
method, and then invoke

  qx.Class.include(qx.ui.core.ClientDocument, my.cool.Mixin)

to add the mixin to the ClientDocument class. The method is then
available with the singlton instance.

=Thomas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to