Skip to content

Commit

Permalink
🐛fixed clearTimeout bug
Browse files Browse the repository at this point in the history
  • Loading branch information
akira-cn committed Sep 11, 2018
1 parent e466560 commit 787256b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ npm install sprite-timeline
in browser

```html
<script src="https://s1.ssl.qhres.com/!a1715367/sprite-timeline.min.js"></script>
<script src="https://s3.ssl.qhres.com/!670d1b37/sprite-timeline.min.js"></script>
```

## Demos
Expand Down
1 change: 1 addition & 0 deletions dist/sprite-timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ var Timeline = function () {
id = _ref5[0],
timer = _ref5[1];

if (!timers.has(id)) return; // Need check because it maybe clearTimeout by former handler().
var _timer$time = timer.time,
isEntropy = _timer$time.isEntropy,
delay = _timer$time.delay,
Expand Down
2 changes: 1 addition & 1 deletion dist/sprite-timeline.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ var Timeline = function () {
id = _ref5[0],
timer = _ref5[1];

if (!timers.has(id)) return; // Need check because it maybe clearTimeout by former handler().
var _timer$time = timer.time,
isEntropy = _timer$time.isEntropy,
delay = _timer$time.delay,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sprite-timeline",
"version": "1.10.1",
"version": "1.10.2",
"description": "Custom timelines for manipulate sprite animation.",
"main": "lib/index.js",
"esnext": {
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class Timeline {

this.markTime({time})
;[...timers].forEach(([id, timer]) => {
if(!timers.has(id)) return; // Need check because it maybe clearTimeout by former handler().
const {isEntropy, delay, heading} = timer.time,
{handler, startTime} = timer;

Expand Down

0 comments on commit 787256b

Please sign in to comment.