Skip to content

Commit

Permalink
Update d3-timer.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Feb 12, 2016
1 parent 4d6f3a6 commit 96c5035
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -28,7 +28,7 @@ If you use NPM, `npm install d3-transition`. Otherwise, download the [latest rel
<script src="https://d3js.org/d3-ease.v0.7.min.js"></script>
<script src="https://d3js.org/d3-interpolate.v0.5.min.js"></script>
<script src="https://d3js.org/d3-selection.v0.6.min.js"></script>
<script src="https://d3js.org/d3-timer.v0.3.min.js"></script>
<script src="https://d3js.org/d3-timer.v0.4.min.js"></script>
<script src="https://d3js.org/d3-transition.v0.1.min.js"></script>
```

Expand Down
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "d3-transition",
"version": "0.1.1",
"version": "0.1.2",
"description": "Animated transitions for D3 selections.",
"keywords": [
"d3",
Expand Down Expand Up @@ -31,7 +31,7 @@
"d3-ease": "~0.7.0",
"d3-interpolate": "~0.5.0",
"d3-selection": "~0.6.10",
"d3-timer": "~0.3.0"
"d3-timer": "~0.4.0"
},
"devDependencies": {
"faucet": "0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/transition/schedule.js
@@ -1,5 +1,5 @@
import {dispatch} from "d3-dispatch";
import {timer, timerOnce} from "d3-timer";
import {timer, timeout} from "d3-timer";

var emptyOn = dispatch("start", "end", "interrupt");
var emptyTweens = [];
Expand Down Expand Up @@ -100,7 +100,7 @@ function start(node, key, self) {
// Note the transition may be canceled after start and before the first tick!
// Note this must be scheduled before the start event; see d3/d3-transition#16!
// Assuming this is successful, subsequent callbacks go straight to tick.
timerOnce(function() {
timeout(function() {
if (schedules.active === self) {
self.timer.restart(tick, self.delay, self.time);
tick(elapsed);
Expand Down

0 comments on commit 96c5035

Please sign in to comment.