diff --git a/lib/torque/request.js b/lib/torque/request.js index 10ed61a..54f8b63 100644 --- a/lib/torque/request.js +++ b/lib/torque/request.js @@ -2,8 +2,10 @@ var torque = exports.torque = exports.torque || {}; torque.net = torque.net || {}; + var lastCall = null; function get(url, callback) { + lastCall = { url: url, callback: callback }; var request = XMLHttpRequest; // from d3.js if (window.XDomainRequest @@ -32,7 +34,8 @@ } torque.net = { - get: get + get: get, + lastCall: function() { return lastCall; } }; })(typeof exports === "undefined" ? this : exports);