mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
Merge pull request #4872 from samme/fix/timeline-callback-params
Fix bad parameter in Timeline callbacks and events
This commit is contained in:
commit
6f8db0774b
1 changed files with 1 additions and 3 deletions
|
@ -279,12 +279,10 @@ var Timeline = new Class({
|
|||
*/
|
||||
dispatchTimelineEvent: function (event, callback)
|
||||
{
|
||||
this.emit(event, this, this.targets);
|
||||
this.emit(event, this);
|
||||
|
||||
if (callback)
|
||||
{
|
||||
callback.params[1] = this.targets;
|
||||
|
||||
callback.func.apply(callback.scope, callback.params);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue