Skip to content

Commit 6f8db07

Browse files
authored
Merge pull request phaserjs#4872 from samme/fix/timeline-callback-params
Fix bad parameter in Timeline callbacks and events
2 parents 3eafac9 + 482757c commit 6f8db07

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/tweens/Timeline.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,12 +279,10 @@ var Timeline = new Class({
279279
*/
280280
dispatchTimelineEvent: function (event, callback)
281281
{
282-
this.emit(event, this, this.targets);
282+
this.emit(event, this);
283283

284284
if (callback)
285285
{
286-
callback.params[1] = this.targets;
287-
288286
callback.func.apply(callback.scope, callback.params);
289287
}
290288
},

0 commit comments

Comments
 (0)