GSAP icon indicating copy to clipboard operation
GSAP copied to clipboard

The arguments are useless

Open 12d opened this issue 13 years ago • 1 comments

p._kill = function(vars, target) { return this._enabled(false, false); };

    p.kill = function(vars, target) {
        this._kill(vars, target);
        return this;
    };

these methods in 'Animate', arguments are not used.

12d avatar Aug 02 '13 06:08 12d

Those are in there for inheritance reasons - the parameters aren't used in the Animation._kill() method, but it is in the TweenLite._kill() method (and others). Keep in mind that Animation is a base class for TweenLite, TweenMax, TimelineLite and TimelineMax.

jackdoyle avatar Aug 02 '13 17:08 jackdoyle