Skip to content

Commit

Permalink
Merge branch 'xhr' of https://github.com/jasondavies/d3 into 2.9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Jun 19, 2012
2 parents 49d3c6f + 53d117e commit 554f26b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion d3.v2.js
Expand Up @@ -494,7 +494,7 @@ d3.xhr = function(url, mime, callback) {
req.onreadystatechange = function() {
if (req.readyState === 4) {
var s = req.status;
callback(s >= 200 && s < 300 || s === 304 ? req : null);
callback(!s && req.response || s >= 200 && s < 300 || s === 304 ? req : null);
}
};
req.send(null);
Expand Down

0 comments on commit 554f26b

Please sign in to comment.