diff --git a/uploader/methods.js b/uploader/methods.js index 5115d27..bd4ca99 100644 --- a/uploader/methods.js +++ b/uploader/methods.js @@ -508,8 +508,10 @@ */ destroy: function() { - // Delete all event handlers - delete this.eventHandlers; + // off all event handlers + for (var eh in this.eventHandlers){ + this.off(eh); + } // Remove the drop zone's event handlers if (this.$dropZone) {