Re: [qooxdoo-devel] Patching a mixin

2009-04-15 Thread Matthew Gregory
Thanks T, thron7 wrote: > Mh, have you tried qx.Class.patch(qx.ui.core.MExecutable, > custom.patch.MExecutable)?! That would be my first test to see if > patching mixins is possible. I tried this and it gave me an error that proto was undefined. I guess this is because mixins are stored diffe

Re: [qooxdoo-devel] Patching a mixin

2009-04-15 Thread thron7
Matthew Gregory wrote: > BTW: > I've come up with this work around which works OK but would like to know > if a more elegant solution exists. > > > > main : function() > { >qx.Class.include(qx.ui.core.Widget, custom.patch.MExecutable); > } > Mh, have you tried qx.Class.patch(qx.ui.core.M

Re: [qooxdoo-devel] Patching a mixin

2009-04-14 Thread Matthew Gregory
Thanks, but I would like my changes to apply to qooxdoo classes that already include MExecute (Button for example). Derrell Lipman wrote: > On Tue, Apr 14, 2009 at 8:02 AM, Matthew Gregory > mailto:matthew%2bqoox...@nogsnet.com>> wrote: > > BTW: > I've come up with this work around whic

Re: [qooxdoo-devel] Patching a mixin

2009-04-14 Thread Derrell Lipman
On Tue, Apr 14, 2009 at 8:02 AM, Matthew Gregory < matthew+qoox...@nogsnet.com > wrote: > BTW: > I've come up with this work around which works OK but would like to know > if a more elegant solution exists. > Although I've never tried it, I believe you can extend a mixin. Assuming you can do that

Re: [qooxdoo-devel] Patching a mixin

2009-04-14 Thread Matthew Gregory
BTW: I've come up with this work around which works OK but would like to know if a more elegant solution exists. main : function() { qx.Class.include(qx.ui.core.Widget, custom.patch.MExecutable); } qx.Mixin.define("custom.patch.MExecutable", { construct : function() { if (qx.Clas

[qooxdoo-devel] Patching a mixin

2009-04-14 Thread Matthew Gregory
Hi All, Is there an easy way to patch a mixin (rather than a class)? We are working on quite a large application so it is important to us that code is easy to maitain and is quite modular etc... We've created patches for some of the base classes and these work fine, I'm now wanting to patch the