Just extend the class you want to do this with:

Fx.StepTween = new Class({
   Extends: Fx.Tween,
   step: function(){
      var ret = this.parent.apply(this, arguments);
      console.log(this.now);
      return ret;
   }
});

On Wed, Mar 28, 2012 at 11:25 AM, Dimitar Christoff <[email protected]>wrote:

> > I was hoping there's a more MooToolish way :-)
> >
> > O.
>
> oh, deep-down, hacking prototypes of objects is as mootoolish as it gets!
>
> haha. i know what you mean, though.
> --
> Dimitar Christoff
>
> "JavaScript is to JAVA what hamster is to ham"
> http://fragged.org/ - @D_mitar - https://github.com/DimitarChristoff
>

Reply via email to