Skip to content

Commit f1077c8

Browse files
supposed to call private d3_xhr
1 parent 7981ca5 commit f1077c8

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/xhr/html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import "../core/document";
22
import "xhr";
33

44
d3.html = function(url, callback) {
5-
return d3.xhr(url, "text/html", d3_html, callback);
5+
return d3_xhr(url, "text/html", d3_html, callback);
66
};
77

88
function d3_html(request) {

src/xhr/json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import "xhr";
22

33
d3.json = function(url, callback) {
4-
return d3.xhr(url, "application/json", d3_json, callback);
4+
return d3_xhr(url, "application/json", d3_json, callback);
55
};
66

77
function d3_json(request) {

src/xhr/text.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import "xhr";
22

33
d3.text = function() {
4-
return d3.xhr.apply(d3, arguments[1], d3_text, arguments[2]);
4+
return d3_xhr(d3, arguments[1], d3_text, arguments[2]);
55
};
66

77
function d3_text(request) {

src/xhr/xml.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import "xhr";
22

33
d3.xml = function() {
4-
return d3.xhr.apply(d3, arguments[1], d3_xml, arguments[2]);
4+
return d3_xhr(d3, arguments[1], d3_xml, arguments[2]);
55
};
66

77
function d3_xml(request) {

0 commit comments

Comments
 (0)