> Cool.
>
> Now, if this would also be possible ....
>
> qx.Class.define("my.classA", {
> extend : qx.ui.window.Window,
> construct : function() {
> this.base(arguments);
> qx.Class.include(my.classA, my.UtilMixin);
>
> ... I'd have a generic "include" mechanism for my own classes. But I fear
> that my.classA would first have to be completely defined, before the mixin
> can happen?
>
Stop dreaming. You can do exactly that. Or, how about:
qx.Class.define("my.classA", {
extend : qx.ui.window.Window,
include : [my.UtilMixin],
...
That should work fine, I think, although I've never tried it that way.
Mixins are included all over the core code that way.
Derrell
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel