cleanup events
This commit is contained in:
parent
7607afd0c9
commit
58c8def046
1 changed files with 4 additions and 2 deletions
|
@ -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]);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue