Permalink
Browse files

Allow `ease` to pass additional arguments.

  • Loading branch information...
1 parent 937529e commit 4fcff607ab031bc3df0a1863435796b8515cfe5e @mbostock mbostock committed Mar 17, 2011
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
@@ -1,4 +1,4 @@
-(function(){d3 = {version: "1.8.1"}; // semver
+(function(){d3 = {version: "1.8.2"}; // semver
if (!Date.now) Date.now = function() {
return +new Date();
};
@@ -1785,7 +1785,7 @@ function d3_transition(groups) {
};
transition.ease = function(value) {
- ease = typeof value == "string" ? d3.ease(value) : value;
+ ease = typeof value == "function" ? value : d3.ease.apply(d3, arguments);
return transition;
};
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1 +1 @@
-d3 = {version: "1.8.1"}; // semver
+d3 = {version: "1.8.2"}; // semver
View
@@ -141,7 +141,7 @@ function d3_transition(groups) {
};
transition.ease = function(value) {
- ease = typeof value == "string" ? d3.ease(value) : value;
+ ease = typeof value == "function" ? value : d3.ease.apply(d3, arguments);
return transition;
};

0 comments on commit 4fcff60

Please sign in to comment.