mirror of
https://github.com/photonstorm/phaser
synced 2025-02-18 15:08:31 +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)
|
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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue