Hi Carsten!

On Thu, 2007-03-15 at 10:24 +0100, Carsten Harnisch wrote:
> I encountered a strange problem when trying to inherite from a class. My
> coding looks like :
>  
> qx.OO.defineClass("qx.manager.selection.DataRadioManager",
> qx.manager.selection.RadioManager, function(vName, vMembers)
> {
>       qx.manager.selection.RadioManager(this, vName, vMembers);
> });
> 
> So basically making a new class "qx.manager.selection.DataRadioManager"
> extending "qx.manager.selection.RadioManager". The is that the code gets
> error in the base-class construction function (seems to be that a property
> is not defined).
> Just copying the code from RadioManager her works fine ?!?
> 
> I am using a "compiled" version (from the new QuickStart) and added a simple
> <script type="text/javascript" src="[...]DataRadioManager.js"></script> in
> the HTML.
> 
> Any hints ?

The .call() is missing. The constructor of the superclass needs to be
called in the current context ("this"). 
qx.manager.selection.RadioManager.call(this, vName, vMembers);
should do it,

Andreas



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to