Permalink
Browse files

Fix a bug with zero-delay transitions.

  • Loading branch information...
mbostock committed Aug 29, 2011
1 parent a9160b5 commit fd101894588e218dcd3ea4e2ece7765462a566f8
Showing with 6 additions and 6 deletions.
  1. +2 −2 d3.js
  2. +2 −2 d3.min.js
  3. +1 −1 src/core/core.js
  4. +1 −1 src/core/transition.js
View
4 d3.js
@@ -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.
@@ -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();
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1 +1 @@
-d3 = {version: "2.1.0"}; // semver
+d3 = {version: "2.1.1"}; // semver
View
@@ -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();

0 comments on commit fd10189

Please sign in to comment.