Skip to content

Commit c33c358

Browse files
committed
Fix #7003. Calling killTweensOf or killAll outside a tween no longer throws errors
1 parent 748b7a6 commit c33c358

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/tweens/tween/Tween.js

+5
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,11 @@ var Tween = new Class({
799799
{
800800
this.emit(event, this, this.targets);
801801

802+
if (!this.callbacks)
803+
{
804+
return;
805+
}
806+
802807
var handler = this.callbacks[callback];
803808

804809
if (handler)

0 commit comments

Comments
 (0)