On Wed, Oct 22, 2008 at 3:42 PM, Iván N Paz <[EMAIL PROTECTED]> wrote: > Thanks John and Rajeev, > > I will lookk further into "this.arguments.callee.parent" and all > that... Im rather new to "mootools inheritance", so that has me a bit > lost since it doesn't really work as C++ OOP... > > Im sure this has been asked hundreds of time before, but I've always > seen quite different answers... > > In my Fx.MorphPath, my "compute" method is been called as expected > (sin Im overriding it) Isn't the current structure supposed to call > its parent (fx.morph::compute) and that method call (fx.css::compute) > afterwards??
Main issue here is not of inheritance. Fx.Morph's compute method takes a dict/hash, not single values. This is why you are getting an error, and this is also why I suggested this.parent.compute(from, to, delta); // because from and to are hashes, and you override morph only in the case of left and top instead of this.parent.compute(from[x], to[x], delta); In other words, please try what I said above, and you should be gold. Regards Rajeev J Sebastian
