stop animation on destroy

This commit is contained in:
2youyouo2
2016-05-12 17:36:52 +08:00
parent aeb5b65c38
commit fb8cadecea
+4
View File
@@ -165,6 +165,10 @@ var Animation = cc.Class({
this.pause();
},
onDestroy: function () {
this.stop();
},
///////////////////////////////////////////////////////////////////////////////
// Public Methods
///////////////////////////////////////////////////////////////////////////////