@zendeskgarden/container-schedule
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -6,2 +6,13 @@ # Change Log | ||
## [1.3.3](https://github.com/zendeskgarden/react-containers/compare/@zendeskgarden/container-schedule@1.3.2...@zendeskgarden/container-schedule@1.3.3) (2020-05-14) | ||
### Bug Fixes | ||
* **schedule:** cleanup all animation frames on removal ([#196](https://github.com/zendeskgarden/react-containers/issues/196)) ([c269825](https://github.com/zendeskgarden/react-containers/commit/c2698251f3e1fd0c7d83734d359cf11e5ecb75b4)) | ||
## [1.3.2](https://github.com/zendeskgarden/react-containers/compare/@zendeskgarden/container-schedule@1.3.1...@zendeskgarden/container-schedule@1.3.2) (2020-02-20) | ||
@@ -8,0 +19,0 @@ |
@@ -35,3 +35,7 @@ /** | ||
var loopTimeout; | ||
var destroyed = false; | ||
var tick = function tick() { | ||
if (destroyed) { | ||
return; | ||
} | ||
raf = requestAnimationFrame(performAnimationFrame); | ||
@@ -55,2 +59,3 @@ }; | ||
return function () { | ||
destroyed = true; | ||
clearTimeout(renderingDelayTimeout); | ||
@@ -57,0 +62,0 @@ clearTimeout(loopTimeout); |
@@ -29,3 +29,7 @@ /** | ||
var loopTimeout; | ||
var destroyed = false; | ||
var tick = function tick() { | ||
if (destroyed) { | ||
return; | ||
} | ||
raf = requestAnimationFrame(performAnimationFrame); | ||
@@ -49,2 +53,3 @@ }; | ||
return function () { | ||
destroyed = true; | ||
clearTimeout(renderingDelayTimeout); | ||
@@ -51,0 +56,0 @@ clearTimeout(loopTimeout); |
@@ -11,3 +11,3 @@ { | ||
}, | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"main": "dist/index.cjs.js", | ||
@@ -44,3 +44,3 @@ "module": "dist/index.esm.js", | ||
"zendeskgarden:src": "src/index.ts", | ||
"gitHead": "c215af13d13a909cf924eba2cb95a11038b054f6" | ||
"gitHead": "2366a2d14df09e59b1786dcf3aacb94efadb2723" | ||
} |
@@ -1,3 +0,6 @@ | ||
# @zendeskgarden/container-schedule [![npm version](https://img.shields.io/npm/v/@zendeskgarden/container-schedule.svg?style=flat-square)](https://www.npmjs.com/package/@zendeskgarden/container-schedule) | ||
# @zendeskgarden/container-schedule [![npm version][npm version badge]][npm version link] | ||
[npm version badge]: https://flat.badgen.net/npm/v/@zendeskgarden/container-schedule | ||
[npm version link]: https://www.npmjs.com/package/@zendeskgarden/container-schedule | ||
This package includes containers relating to schedule in the | ||
@@ -4,0 +7,0 @@ [Garden Design System](https://zendeskgarden.github.io/). |
24667
218
46