On Wed, Mar 28, 2012 at 08:41, Dietrich Streifert <
[email protected]> wrote:

> Hi Derrell!
>
> No this works exactly as implemented in my code. I think I remember some
> discussion with Sebastian Werner if it would be possible to have access
> to the original patched out member function. Please read the comment
> above the __mixinMemberWrapper in qx.Class:
>
>
> https://github.com/qooxdoo/qooxdoo/blob/35db87d/framework/source/class/qx/Class.js#L1328


I stand corrected! This playground snippet demonstrates it:

qx.Class.define("my.A",
{
  extend : qx.core.Object,

  construct : function()
  {
    this.debug("A constructor");
  },

  members :
  {
    func : function()
    {
      this.debug("A.func");
    }
  }
});

qx.Mixin.define("my.M",
{
  construct : function()
  {
    this.debug("M constructor");
  },

  members :
  {
    func : function()
    {
      this.base(arguments);
      this.debug("M.func");
    }
  }
});

qx.Class.patch(my.A, my.M);

var a = new my.A();
a.func();


Learned something useful. Thanks! :-)

Derrell
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to