MCPcopy
hub / github.com/CodeboxIDE/codebox / getXMLHttpRequest

Function getXMLHttpRequest

core/cb.addons/require-tools/less/lessc.js:6640–6652  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6638}
6639
6640function getXMLHttpRequest() {
6641 if (window.XMLHttpRequest) {
6642 return new XMLHttpRequest();
6643 } else {
6644 try {
6645 /*global ActiveXObject */
6646 return new ActiveXObject("MSXML2.XMLHTTP.3.0");
6647 } catch (e) {
6648 log("browser doesn't support AJAX.", logLevel.errors);
6649 return null;
6650 }
6651 }
6652}
6653
6654function doXHR(url, type, callback, errback) {
6655 var xhr = getXMLHttpRequest();

Callers 1

doXHRFunction · 0.85

Calls 1

logFunction · 0.85

Tested by

no test coverage detected