@gush/candybar
Advanced tools
Comparing version 0.0.0-alpha34 to 0.0.0-alpha35
@@ -434,8 +434,8 @@ 'use strict'; | ||
this.stop = function () { | ||
cancelAnimationFrame(_this.rafId); | ||
_this.cancelRaf(); | ||
_this.paused = true; | ||
_this.rafId = null; | ||
}; | ||
this.start = function () { | ||
_this.cancelRaf(); | ||
_this.paused = false; | ||
@@ -593,2 +593,8 @@ _this.render(); | ||
}, { | ||
key: 'cancelRaf', | ||
value: function cancelRaf() { | ||
this.rafId && cancelAnimationFrame(this.rafId); | ||
this.rafId = null; | ||
} | ||
}, { | ||
key: 'clearCanvas', | ||
@@ -595,0 +601,0 @@ value: function clearCanvas(_ref6) { |
{ | ||
"name": "@gush/candybar", | ||
"version": "0.0.0-alpha34", | ||
"version": "0.0.0-alpha35", | ||
"description": "🍫", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
431082
11
869