On Wed, 19 May 2010, Derrell Lipman wrote:
>> 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],
Much nicer ... I guess I should read more framework code ...
> That should work fine, I think, although I've never tried it that way.
> Mixins are included all over the core code that way.
Aren't I impressed!
Thanks once more,
Fritz
--
Oetiker+Partner AG tel: +41 62 775 9903 (direct)
Fritz Zaucker +41 62 775 9900 (switch board)
Aarweg 15 +41 79 675 0630 (mobile)
CH-4600 Olten fax: +41 62 775 9905
Schweiz web: www.oetiker.ch
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel