Skip to content

Commit

Permalink
fix: the stop method of ParticleSystem does not work (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangwenming authored and 06wj committed Jun 21, 2016
1 parent 7fb2c16 commit eb640a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/ParticleSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ var ParticleSystem = (function(){
* @param {Boolean} clear 是否清除所有粒子
*/
stop: function(clear) {
this.isRun = false;
this._isRun = false;
if (clear) {
for (var i = this.children.length - 1; i >= 0; i--) {
this.children[i].destroy();
Expand Down

0 comments on commit eb640a1

Please sign in to comment.