From 58c8def046a4925c7432cf2d96be9d82512ba92b Mon Sep 17 00:00:00 2001 From: j Date: Tue, 20 Sep 2016 01:16:16 +0200 Subject: [PATCH] cleanup events --- static/js/chunkupload.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/js/chunkupload.js b/static/js/chunkupload.js index 39031737..e85b47a4 100644 --- a/static/js/chunkupload.js +++ b/static/js/chunkupload.js @@ -60,7 +60,9 @@ pandora.chunkupload = function(options) { options.file = null; options = null; file = null; - request = null + request = null; + // cleanup events + that.remove(); } function initUpload() { @@ -108,8 +110,8 @@ pandora.chunkupload = function(options) { that.progress = -1; done(); }, false); - var formData = new FormData(); + var formData = new FormData(); Object.keys(options.data).forEach(function(key) { formData.append(key, options.data[key]); });