Use Tween.callbackScope fix #6229

This commit is contained in:
Richard Davey 2022-09-26 21:42:24 +01:00
parent f23a08ef7c
commit 9ca7513b14
2 changed files with 2 additions and 2 deletions

View file

@ -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));
}
}
},

View file

@ -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));
}
}
},