Browse Source

Used module level variable for observer

Post-review changes
pull/6833/head
Euan Goddard 5 years ago
parent
commit
9b49d49352
1 changed files with 1 additions and 2 deletions
  1. 3
      src/definitions/modules/modal.js

3
src/definitions/modules/modal.js

@ -138,7 +138,7 @@ $.fn.modal = function(parameters) {
}, },
destroy: function() { destroy: function() {
if (module.observer) {
if (observer) {
observer.disconnect(); observer.disconnect();
} }
module.verbose('Destroying previous modal'); module.verbose('Destroying previous modal');
@ -163,7 +163,6 @@ $.fn.modal = function(parameters) {
subtree : true subtree : true
}); });
module.debug('Setting up mutation observer', observer); module.debug('Setting up mutation observer', observer);
module.observer = observer;
} }
}, },

Loading…
Cancel
Save