First, I removed the obsolete if condition surrounding the if..else block.
Then, when options.reset is true, the expected behavior is to reset the
property value to the begin value, which works. But when options.reset is
false or undefined, the property value would be set to false or
undefined at the end of the animation, which is not the desired effect. I
fixed this to reflect the expected behavior.
First, I removed the obsolete if condition surrounding the if..else block.
Then, when options.reset is true, the expected behavior is to reset the property value to the begin value, which works. But when options.reset is false or undefined, the property value would be set to false or undefined at the end of the animation, which is not the desired effect. I fixed this to reflect the expected behavior.