@gush/candybar
Advanced tools
Comparing version 0.0.0-alpha33 to 0.0.0-alpha34
@@ -434,3 +434,5 @@ 'use strict'; | ||
this.stop = function () { | ||
cancelAnimationFrame(_this.rafId); | ||
_this.paused = true; | ||
_this.rafId = null; | ||
}; | ||
@@ -455,3 +457,5 @@ | ||
!_this.paused && window.requestAnimationFrame(_this.render); | ||
if (!_this.paused) { | ||
_this.rafId = window.requestAnimationFrame(_this.render); | ||
} | ||
}; | ||
@@ -471,2 +475,5 @@ | ||
// request animation frame id | ||
this.rafId = null; | ||
// entities to be drawn on the canvas | ||
@@ -473,0 +480,0 @@ this.entities = entities; |
{ | ||
"name": "@gush/candybar", | ||
"version": "0.0.0-alpha33", | ||
"version": "0.0.0-alpha34", | ||
"description": "🍫", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
863
36061
9