Merge pull request #6252 from quocsinh/master

Fix Tween
This commit is contained in:
Richard Davey 2022-10-14 15:37:51 +01:00 committed by GitHub
commit 12620abf52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 3 deletions

View file

@ -18,6 +18,7 @@ var Tweens = {
TweenManager: require('./TweenManager'),
Tween: require('./tween/Tween'),
TweenData: require('./tween/TweenData'),
TweenFrameData: require('./tween/TweenFrameData'),
BaseTween: require('./tween/BaseTween'),
TweenChain: require('./tween/TweenChain')

View file

@ -501,7 +501,7 @@ var TweenChain = new Class({
if (handler)
{
handler.func.apply(handler.scope, [ this ].concat(handler.params));
handler.func.apply(this.callbackScope, [ this ].concat(handler.params));
}
},

View file

@ -480,7 +480,7 @@ var TweenData = new Class({
var key = this.key;
var current = this.current;
var previous = this.previoius;
var previous = this.previous;
tween.emit(event, tween, key, target, current, previous);

View file

@ -363,7 +363,7 @@ var TweenFrameData = new Class({
if (handler)
{
handler.func.apply(handler.scope, [ tween, target, 'texture' ].concat(handler.params));
handler.func.apply(tween.callbackScope, [ tween, target, 'texture' ].concat(handler.params));
}
}
},