Merge pull request #480 from mrkeldon/master

Add onReset handler for Tweens
This commit is contained in:
Eric Rowell
2013-07-21 16:16:59 -07:00

View File

@@ -76,6 +76,9 @@
}
this.reset();
// add Reset event handler after initial reset is fired
this.onReset = config.onReset;
};
// start/diff object = attrs.nodeId.tweenId.attr
@@ -172,6 +175,11 @@
that.onFinish();
}
};
tween.onReset = function() {
if (that._isLastTween(tween) && that.onReset) {
that.onReset();
}
};
},
/**
* play
@@ -596,4 +604,4 @@
return c * t / d + b;
}
};
})();
})();