Skip to content

Commit

Permalink
Fix particle cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
chabou committed Feb 13, 2019
1 parent 4ef8673 commit 6f0b5e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ exports.decorateTerm = (Term, { React, notify }) => {
this._particles.push(this._createParticle(x, y, color));
}
if (length === 0) {
this._window.requestAnimationFrame(this._drawFrame);
window.requestAnimationFrame(this._drawFrame);
}
}

Expand Down

0 comments on commit 6f0b5e3

Please sign in to comment.