>>> proto.func = function() {
>>>     // How can I call here BaseClass.func()?
>>>     return 'In derived class';
>>> }
>>>     
>> BaseClass.func.call(this, param1, param2);

> Or even better:
> 
> proto.func = function() {
>      superclass.func.call(this);
>      return 'In derived class';
> 
> }

I think you mean:
     this.superclass.func.call(this);

But this is dangerous, because if you create another subclass of 
DerivedClass, then this.superclass will contain DerivedClass and not 
BaseClass any more. Then you will get an endless loop.




-------------------------------------------------------------------------
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