mootools/mootools-core — Issue #2125: change in the way Element.prototype.fade overloads arguments to Fx.Tween
Author: DimitarChristoff
Created: 2011-11-16 13:36:24+00:00
State: open

This is one of these undocumented features that I have always taken for granted:

`element.fade(0, 1);` behaviour has changed in 1.4

previously, the switch statement would pass on all arguments to the Fx.Tween instance so the above would work:
https://github.com/mootools/mootools-core/blob/1.3x/Source/Fx/Fx.Tween.js#L84

now, the `default` on the switch reverts to working with a single argument only (`how`), which means you cannot set the start value of the tween, only the end one.
https://github.com/mootools/mootools-core/blob/master/Source/Fx/Fx.Tween.js#L85

The old behaviour was rather nice, it provided an Element shortcut API into Fx.Tween, can it be reverted back, please as it's a breaking change that is not warranted by any real concern.