Merge pull request #4872 from samme/fix/timeline-callback-params

Fix bad parameter in Timeline callbacks and events
This commit is contained in:
Richard Davey 2019-11-20 12:32:26 +00:00 committed by GitHub
commit 6f8db0774b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -279,12 +279,10 @@ var Timeline = new Class({
*/ */
dispatchTimelineEvent: function (event, callback) dispatchTimelineEvent: function (event, callback)
{ {
this.emit(event, this, this.targets); this.emit(event, this);
if (callback) if (callback)
{ {
callback.params[1] = this.targets;
callback.func.apply(callback.scope, callback.params); callback.func.apply(callback.scope, callback.params);
} }
}, },