diff --git a/src/definitions/modules/modal.js b/src/definitions/modules/modal.js index d2793ee0a..915b2c29d 100755 --- a/src/definitions/modules/modal.js +++ b/src/definitions/modules/modal.js @@ -138,6 +138,9 @@ $.fn.modal = function(parameters) { }, destroy: function() { + if (observer) { + observer.disconnect(); + } module.verbose('Destroying previous modal'); $module .removeData(moduleNamespace)