On Wed, Jun 16, 2010 at 13:59, sid_curious <[email protected]> wrote:
>
> hi,
>
> i have the same question:
>
>
> qx.Class.define("my.cool.A", {
> extend : qx.core.Object,
> ...
> members : {
> foo : function() {
> alert("A");
> }
> }
> });
>
>
> qx.Class.define("my.cool.B", {
> extend : my.cool.A,
> ...
> members : {
> foo : function() {
> alert("B")
> },
> foo2 : function() {
> //call foo from my.cool.A
> }
> }
> });
>
> how can I call from foo2 (class B) the foo (class A) function?
>
You have the same two options that Eduardo had. See my reply to his message
immediately preceding this.
You can do:
my.cool.A.prototype.foo.call(this);
or you can add a flag in your overridden foo method and call your overridden
method which would then call its superclass.
Derrell
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel