diff --git a/src/Tween.js b/src/Tween.js index ce80724e..10736430 100644 --- a/src/Tween.js +++ b/src/Tween.js @@ -67,6 +67,9 @@ } this.reset(); + + // add Reset event handler after initial reset is fired + this.onReset = config.onReset; }; Kinetic.Tween.tweens = {}; @@ -127,6 +130,11 @@ that.onFinish(); } }; + tween.onReset = function() { + if (that._isLastTween(tween) && that.onReset) { + that.onReset(); + } + }; }, /** * play @@ -559,4 +567,4 @@ return c * t / d + b; } }; -})(); \ No newline at end of file +})();