mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 09:48:18 +00:00
Use Tween.callbackScope fix #6229
This commit is contained in:
parent
f23a08ef7c
commit
9ca7513b14
2 changed files with 2 additions and 2 deletions
|
@ -676,7 +676,7 @@ var Tween = new Class({
|
|||
|
||||
if (handler)
|
||||
{
|
||||
handler.func.apply(handler.scope, [ this, this.targets ].concat(handler.params));
|
||||
handler.func.apply(this.callbackScope, [ this, this.targets ].concat(handler.params));
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -488,7 +488,7 @@ var TweenData = new Class({
|
|||
|
||||
if (handler)
|
||||
{
|
||||
handler.func.apply(handler.scope, [ tween, target, key, current, previous ].concat(handler.params));
|
||||
handler.func.apply(tween.callbackScope, [ tween, target, key, current, previous ].concat(handler.params));
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue