From 81393ffc53ab3be27e84e74c334c588694530286 Mon Sep 17 00:00:00 2001 From: Romain Courteaud Date: Mon, 3 Sep 2018 15:08:06 +0200 Subject: [PATCH] Ajax: notify channel is not used --- src/jio.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/jio.js b/src/jio.js index fbe55fa..621c843 100644 --- a/src/jio.js +++ b/src/jio.js @@ -66,7 +66,7 @@ */ function ajax(param) { var xhr = new XMLHttpRequest(); - return new RSVP.Promise(function (resolve, reject, notify) { + return new RSVP.Promise(function (resolve, reject) { var k; xhr.open(param.type || "GET", param.url, true); xhr.responseType = param.dataType || ""; @@ -84,7 +84,6 @@ resolve(e); }); xhr.addEventListener("error", reject); - xhr.addEventListener("progress", notify); if (typeof param.xhrFields === 'object' && param.xhrFields !== null) { for (k in param.xhrFields) { if (param.xhrFields.hasOwnProperty(k)) { -- libgit2 0.24.0