From: Nicolas Coden Date: Thu, 15 Mar 2018 08:07:47 +0000 (+0100) Subject: fix: correctly clear tooltip classes on destroy X-Git-Tag: v6.6.0~3^2~275^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f656ebdb1;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fix: correctly clear tooltip classes on destroy Changes: * remove the `triggerClass` option instead of `.has-tip` * remove `.bottom` --- diff --git a/js/foundation.tooltip.js b/js/foundation.tooltip.js index 523ee5868..8823dccfd 100644 --- a/js/foundation.tooltip.js +++ b/js/foundation.tooltip.js @@ -291,7 +291,8 @@ class Tooltip extends Positionable { _destroy() { this.$element.attr('title', this.template.text()) .off('.zf.trigger .zf.tooltip') - .removeClass('has-tip top right left') + .removeClass(this.options.triggerClass) + .removeClass('top right left bottom') .removeAttr('aria-describedby data-disable-hover data-resize data-toggle data-tooltip data-yeti-box'); this.template.remove();