]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Delete dropdown click event listener on destroy 9891/head
authorRenol <renol_siete@hotmail.com>
Thu, 23 Mar 2017 09:32:33 +0000 (10:32 +0100)
committerRenol <renol_siete@hotmail.com>
Thu, 23 Mar 2017 10:55:32 +0000 (11:55 +0100)
js/foundation.dropdown.js

index aa4fcb1e11ab22ea9950ea2d83183e65a0b3ff1b..ff70a1ce264ef5adba6e3e1523aa1e8e20ae63fe 100644 (file)
@@ -348,6 +348,7 @@ class Dropdown {
   destroy() {
     this.$element.off('.zf.trigger').hide();
     this.$anchor.off('.zf.dropdown');
+    $(document.body).off('click.zf.dropdown');
 
     Foundation.unregisterPlugin(this);
   }