just a few minor animation tweaks

This commit is contained in:
Adam Bradley
2015-06-12 10:58:29 -05:00
parent 7839c69a37
commit d2c3ed1125
53 changed files with 784 additions and 641 deletions

View File

@ -186,11 +186,14 @@
if ((finished || this._idle) && !this._finishedFlag) {
var event = new AnimationEvent(this, this._currentTime, baseTime);
var handlers = this._finishHandlers.concat(this.onfinish ? [this.onfinish] : []);
setTimeout(function() {
handlers.forEach(function(handler) {
handler.call(event.target, event);
});
}, 0);
// setTimeout(function() {
// handlers.forEach(function(handler) {
// handler.call(event.target, event);
// });
// }, 0);
handlers.forEach(function(handler) {
handler.call(event.target, event);
});
}
this._finishedFlag = finished;
},