I'm currently simply adding the hash on first init to
this.constructor.myhash = {};
which is dirty but works.
I think I'll go with your proposal using the constructor of the mixin.
Thank you for your help.
Regards
Dietrich
Am 23.12.2015 um 16:54 schrieb Derrell Lipman:
> Looking at the source code for qx.Class, the mixin constructor is
> called as follows:
>
> mixins[i].$$constructor.apply(this,arguments);
>
> This looks to me like 'this' in the constructor will be the instance
> of the class doing the mixing in (include), not the mixin itself. If
> that's the case, you can do:
>
> hash = qx.core.ObjectRegistry.toHashCode(this);
>
> to get the hash of the including, not included, class instance.
>
> You should also be able to get the class name of 'this' with:
>
> this.toString().replace(/\[.*/, "")
>
> Hope that helps.
>
> Derrell
>
>
>
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel