]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix #9336 9337/head
authorMichael Manhire <michaelmanhire@gmail.com>
Mon, 7 Nov 2016 05:14:32 +0000 (21:14 -0800)
committerMichael Manhire <michaelmanhire@gmail.com>
Mon, 7 Nov 2016 05:14:32 +0000 (21:14 -0800)
Correct a typo in removing the .zf-tooltip event handler and remove more tooltip-specific attributes and classes when the tooltip is destroyed

js/foundation.tooltip.js

index 1936d1b9529b1b10f138e18409dbe90e952233b6..fc822a41e5e11d7650d3eabbd6f0c7e13db5e6e1 100644 (file)
@@ -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();