Skip to content

Commit d736402

Browse files
make diff nicer
1 parent b880858 commit d736402

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/xhr/xhr.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import "../core/identity";
44
import "../core/rebind";
55
import "../event/dispatch";
66

7-
87
d3.xhr = function(url, mimeType, callback) {
98
return d3_xhr(url, mimeType, d3_identity, callback);
109
};
@@ -83,10 +82,10 @@ function d3_xhr(url, mimeType, response, callback) {
8382

8483
if (arguments.length === 2 && typeof mimeType === "function") callback = mimeType, mimeType = null;
8584
return callback == null ? xhr : xhr.get(d3_xhr_fixCallback(callback));
86-
}
85+
};
8786

8887
function d3_xhr_fixCallback(callback) {
8988
return callback.length === 1
9089
? function(error, request) { callback(error == null ? request : null); }
9190
: callback;
92-
}
91+
}

0 commit comments

Comments
 (0)