Correct a typo in removing the .zf-tooltip event handler and remove more tooltip-specific attributes and classes when the tooltip is destroyed
*/
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();