]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
[DropdownMenu] fixes body off click on destroy 7905/head
authorjk <jk@modulingo.de>
Mon, 18 Jan 2016 09:38:23 +0000 (10:38 +0100)
committerjk <jk@modulingo.de>
Mon, 18 Jan 2016 09:38:23 +0000 (10:38 +0100)
js/foundation.dropdownMenu.js

index 96b35af4656e744210e1c9365889fce5ece57612..edd5563355f31d92d39c13230d664f9faef1607f 100644 (file)
   DropdownMenu.prototype.destroy = function(){
     this.$menuItems.off('.zf.dropdownmenu').removeAttr('data-is-click')
         .removeClass('is-right-arrow is-left-arrow is-down-arrow opens-right opens-left opens-inner');
+    $(document.body).off('.zf.dropdownmenu');
     Foundation.Nest.Burn(this.$element, 'dropdown');
     Foundation.unregisterPlugin(this);
   };