Sascha Haeberling schrieb:
> Hi,
> 
> I am currently experimenting with the new OO-API in 0.7 beta 1. It feels 
> great so far and it looks nice and clean.

Nice to hear. Positive feedback is useful, too.

> But what I am wondering is: Is there a way to call a superclass' method 
> named different than the one I am calling from?
> For example, if I have a method getA() in a super-class and I have 
> overwritten this one in my subclass. Is there a way to call superclass' 
> getA() from a method getB() in the subclass?

In this case you must do it yourself. You can do it like in 0.6.x with 
something like

my.super.class.prototype.getB.call(this);

An alternative would be:

this.self(arguments).superclass.prototype.getB.call(this);

which omits the explicit name of the super-class again.

> 
> By the way: There seems to be a little typo at [1] in the code block of 
> "Calling the corresponding Superclass Method". Shouldn't 
> "this.base.(arguments);"  be "this.base(arguments);"?

Thanks. Fixed on the wiki page. If you find more of these obviously 
errors, please feel free to correct them yourself. The wiki is open for 
all people. Each contribution is highly appreciated.

Sebastian

> 
> Thank you,
> -- Sascha
> 
> 
> 
> 
> [1] 
> http://qooxdoo.org/documentation/articles/proposed_class_declaration_for_qooxdoo_0.7
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to