Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/radford/d3 into 2.7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Jan 26, 2012
2 parents 4206b69 + 00ed4c4 commit 42352b2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions d3.js
Expand Up @@ -418,9 +418,8 @@ d3.requote = function(s) {

var d3_requote_re = /[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;
d3.round = function(x, n) {
return n
? Math.round(x * Math.pow(10, n)) * Math.pow(10, -n)
: Math.round(x);
var ten_n = Math.pow(10, n);
return Math.round(x * ten_n) / ten_n;
};
d3.xhr = function(url, mime, callback) {
var req = new XMLHttpRequest;
Expand Down

0 comments on commit 42352b2

Please sign in to comment.