Whenever I subclass something, if I don't need to use the arguments of the method I'm overwriting, then passing whatever arguments are passed in along to the parent an returning whatever it returns makes my extension a little more future proof. If, on the next release, that method returns something, or it's argument signature changes, my extension doesn't break.
On Mar 31, 2012, at 3:12 AM, hamburger <[email protected]> wrote: > Thank You Aaron, > I just want to have the value of the step, like: > http://jsfiddle.net/FWZTn/4/ > It works fine. > One more question: > Why are <<var ret = this.parent.apply(this, arguments);>> is used > when it is undefined anyway? > isn't there a return enough? > >
