Re: [qooxdoo-devel] Inheritance and calling superclass methods

2006-08-17 Thread dperez
Hi, It looks like a good and clever approach. Nearly every day I learn a new Javascript trick. Fabian Jakobs wrote: > > I knew I've missed something ;-) > > Here it comes: > > http://truecode.blogspot.com/2006/08/object-oriented-super-class-method.html > > mfg Fabian > -- View this mess

Re: [qooxdoo-devel] Inheritance and calling superclass methods

2006-08-17 Thread Fabian Jakobs
Title: AW: [qooxdoo-devel] Inheritance and calling superclass methods I knew I've missed something ;-) Here it comes: http://truecode.blogspot.com/2006/08/object-oriented-super-class-method.html mfg Fabian -Ursprüngliche Nachricht- Hi! welcome to the qooxdoo list :)

Re: [qooxdoo-devel] Inheritance and calling superclass methods

2006-08-16 Thread Sebastian Werner
Hi! welcome to the qooxdoo list :) Could you provide a link to the article? Maybe it also would be nice to explain the idea in some short sentences. Thanks. Sebastian Fabian Jakobs schrieb: > Hi, > > > > I just dicovered a blog entry on ajaxian, which proposes gives a good > overview

[qooxdoo-devel] Inheritance and calling superclass methods

2006-08-16 Thread Fabian Jakobs
Hi,   I just dicovered a blog entry on ajaxian, which proposes gives a good overview over the „calling superclass methods“ problem. I really like the solution he comes up with. What is especially nice ist hat he doesn’t neet wrapper functions or any extra objects. Maybe this could be a n

Re: [qooxdoo-devel] Inheritance and calling superclass methods

2006-08-14 Thread Andreas Ecker
Hi, Hugh! Hugh Gibson wrote: >> Can anybody give us a hint please, why this ask for help is being >> ignored? This fact is certainly not encouraging us to meet people's >> expectations for providing even more articles (e.g. for qooxdoo >> 0.6). > > > We're focusing on our wxPython implementati

Re: [qooxdoo-devel] Inheritance and calling superclass methods

2006-08-14 Thread Hugh Gibson
> Can anybody give us a hint please, why this ask for help is being > ignored? This fact is certainly not encouraging us to meet people's > expectations for providing even more articles (e.g. for qooxdoo 0.6). We're focusing on our wxPython implementation of our product at the moment (pre-exist

Re: [qooxdoo-devel] Inheritance and calling superclass methods

2006-08-04 Thread Christian Boulanger
Andreas Ecker schrieb: > Can anybody give us a hint please, why this ask for help is being > ignored? This fact is certainly not encouraging us to meet people's > expectations for providing even more articles (e.g. for qooxdoo 0.6). > > Sorry, just being sad, :-( > > Andreas > Hi Andreas, I ca

Re: [qooxdoo-devel] Inheritance and calling superclass methods

2006-08-04 Thread Andreas Ecker
Howdy! David Perez wrote: > If the documentation were a wiki, I would have updated > http://old.qooxdoo.org/documentation/inheritance Directly from http://qooxdoo.org/documentation : "We are currently switching from a typical CMS to a wiki engine for our entire homepage. All community members

Re: [qooxdoo-devel] Inheritance and calling superclass methods

2006-08-04 Thread David Perez
Hi Til, You were right, I meant this.superclass and also it is dangerous. The Dojo approach for managing inheritance seems smarter: http://manual.dojotoolkit.org/WikiHome/DojoDotBook/Book20 They provide the "this.inherited" mechanism for this purpose. Til Schneider schrieb: proto.func = f

Re: [qooxdoo-devel] Inheritance and calling superclass methods

2006-08-04 Thread Til Schneider
>>> 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'; > >

Re: [qooxdoo-devel] Inheritance and calling superclass methods

2006-08-04 Thread David Perez
Thanks Til, Or even better: proto.func = function() { superclass.func.call(this); return 'In derived class'; } In this way, we don't need to know the name of the superclass. If the documentation were a wiki, I would have updated http://old.qooxdoo.org/documentation/inheritance Til

Re: [qooxdoo-devel] Inheritance and calling superclass methods

2006-08-04 Thread Til Schneider
> proto.func = function() { > // How can I call here BaseClass.func()? > return 'In derived class'; > } BaseClass.func.call(this, param1, param2); - Take Surveys. Earn Cash. Influence the Future of IT Join SourceFo

[qooxdoo-devel] Inheritance and calling superclass methods

2006-08-04 Thread David Perez
Hi, I haven't found any example in the Qooxdoo source code about calling a superclass method of a redefined method of a superclass. Is this easily possible? Sample source code: function BaseClass() { } BaseClass.extend(Object, 'BaseClass'); proto.func = function() { return 'In base class'