cleanup events

This commit is contained in:
j 2016-09-20 01:16:16 +02:00
parent 7607afd0c9
commit 58c8def046

View file

@ -60,7 +60,9 @@ pandora.chunkupload = function(options) {
options.file = null; options.file = null;
options = null; options = null;
file = null; file = null;
request = null request = null;
// cleanup events
that.remove();
} }
function initUpload() { function initUpload() {
@ -108,8 +110,8 @@ pandora.chunkupload = function(options) {
that.progress = -1; that.progress = -1;
done(); done();
}, false); }, false);
var formData = new FormData();
var formData = new FormData();
Object.keys(options.data).forEach(function(key) { Object.keys(options.data).forEach(function(key) {
formData.append(key, options.data[key]); formData.append(key, options.data[key]);
}); });