Static members are accessed in exactly the same way regardless of whether
they're in a mixin or not. In this case, you'd access "myapp.MMixin.myhash"
because myhash is a static of the mixin itself.

Derrell


On Wed, Dec 23, 2015 at 9:52 AM Dietrich Streifert <
dietrich.streif...@googlemail.com> wrote:

> Hi all,
>
> if I have a mixin like this:
>
> qx.Mixin.define("myapp.MMixin",
> {
>   statics : {
>     myhash: {}
>   },
>
>   members: {
>     mymethod : function() {
>        this.self(arguments).myhash.foo = 'bar'; // this does not work !!!!
>
>        this.constructor.myhash.foo = 'bar'; // this does not work !!!!
>     }
>   }
> });
>
> How do I access the static member myhash? The code above does not work!
>
> The mixin is of course used via include in another class.
>
> Any help would be great!
>
> Regards
> Dietrich
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to