Skip to content

Commit

Permalink
Fix a bug with zero-delay transitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Aug 29, 2011
1 parent a9160b5 commit fd10189
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions d3.js
Expand Up @@ -10,7 +10,7 @@ try {
d3_style_setProperty.call(this, name, value + "", priority);
};
}
d3 = {version: "2.1.0"}; // semver
d3 = {version: "2.1.1"}; // semver
var d3_arraySubclass = [].__proto__?

// Until ECMAScript supports array subclassing, prototype injection works well.
Expand Down Expand Up @@ -1782,7 +1782,7 @@ function d3_transition(groups, id) {

++lock.count;

delay <= elapsed ? start() : d3.timer(start, delay, then);
delay <= elapsed ? start(elapsed) : d3.timer(start, delay, then);

function start(elapsed) {
if (lock.active > id) return stop();
Expand Down
4 changes: 2 additions & 2 deletions d3.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/core/core.js
@@ -1 +1 @@
d3 = {version: "2.1.0"}; // semver
d3 = {version: "2.1.1"}; // semver
2 changes: 1 addition & 1 deletion src/core/transition.js
Expand Up @@ -37,7 +37,7 @@ function d3_transition(groups, id) {

++lock.count;

delay <= elapsed ? start() : d3.timer(start, delay, then);
delay <= elapsed ? start(elapsed) : d3.timer(start, delay, then);

function start(elapsed) {
if (lock.active > id) return stop();
Expand Down

0 comments on commit fd10189

Please sign in to comment.