Skip to content

Commit 2e2e30a

Browse files
author
Dmitriy Khudorozhkov
committed
Correctly unset event handlers when destroying the file uploader.
1 parent 093ec8d commit 2e2e30a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/jquery.fileupload.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,10 @@
13111311
this._off(this.options.fileInput, 'change');
13121312
},
13131313

1314+
_destroy: function () {
1315+
this._destroyEventHandlers();
1316+
},
1317+
13141318
_setOption: function (key, value) {
13151319
var reinit = $.inArray(key, this._specialOptions) !== -1;
13161320
if (reinit) {

0 commit comments

Comments
 (0)