Commit 81393ffc authored by Romain Courteaud's avatar Romain Courteaud

Ajax: notify channel is not used

parent c8334d54
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
*/ */
function ajax(param) { function ajax(param) {
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
return new RSVP.Promise(function (resolve, reject, notify) { return new RSVP.Promise(function (resolve, reject) {
var k; var k;
xhr.open(param.type || "GET", param.url, true); xhr.open(param.type || "GET", param.url, true);
xhr.responseType = param.dataType || ""; xhr.responseType = param.dataType || "";
...@@ -84,7 +84,6 @@ ...@@ -84,7 +84,6 @@
resolve(e); resolve(e);
}); });
xhr.addEventListener("error", reject); xhr.addEventListener("error", reject);
xhr.addEventListener("progress", notify);
if (typeof param.xhrFields === 'object' && param.xhrFields !== null) { if (typeof param.xhrFields === 'object' && param.xhrFields !== null) {
for (k in param.xhrFields) { for (k in param.xhrFields) {
if (param.xhrFields.hasOwnProperty(k)) { if (param.xhrFields.hasOwnProperty(k)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment