Skip to content

Commit

Permalink
Fixed issue with killTweensOf() that could allow a tween to persist a…
Browse files Browse the repository at this point in the history
…fter all its tweening properties are killed
  • Loading branch information
jackdoyle committed Mar 1, 2013
1 parent abe855b commit f4e262a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/com/greensock/TweenLite.as
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* VERSION: 12.0.3
* DATE: 2013-02-28
* DATE: 2013-03-01
* AS3 (AS2 version is also available)
* UPDATES AND DOCS AT: http://www.greensock.com
**/
Expand Down Expand Up @@ -780,6 +780,9 @@ package com.greensock {
overwrittenProps[p] = 1;
}
}
if (_firstPT == null) { //if all tweening properties are killed, kill the tween. Without this line, if there's a tween with multiple targets and then you killTweensOf() each target individually, the tween would technically still remain active and fire its onComplete even though there aren't any more properties tweening.
_enabled(false, false);
}
}
}
return changed;
Expand Down

0 comments on commit f4e262a

Please sign in to comment.