From: Michael Manhire Date: Mon, 7 Nov 2016 05:14:32 +0000 (-0800) Subject: Fix #9336 X-Git-Tag: v6.3-rc1~34^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9337%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fix #9336 Correct a typo in removing the .zf-tooltip event handler and remove more tooltip-specific attributes and classes when the tooltip is destroyed --- diff --git a/js/foundation.tooltip.js b/js/foundation.tooltip.js index 1936d1b95..fc822a41e 100644 --- a/js/foundation.tooltip.js +++ b/js/foundation.tooltip.js @@ -339,12 +339,9 @@ class Tooltip { */ destroy() { this.$element.attr('title', this.template.text()) - .off('.zf.trigger .zf.tootip') - // .removeClass('has-tip') - .removeAttr('aria-describedby') - .removeAttr('data-yeti-box') - .removeAttr('data-toggle') - .removeAttr('data-resize'); + .off('.zf.trigger .zf.tooltip') + .removeClass('has-tip top right left') + .removeAttr('aria-describedby aria-haspopup data-disable-hover data-resize data-toggle data-tooltip data-yeti-box'); this.template.remove();