1
1

tooltipster-discovery.min.js 1013 B

1
  1. /* tooltipster-discovery v1.0.2 */!function(n,t){"function"==typeof define&&define.amd?define(["tooltipster"],function(n){return t(n)}):"object"==typeof exports?module.exports=t(require("tooltipster")):t(jQuery)}(this,function(n){return n.tooltipster._plugin({name:"laa.discovery",core:{__init:function(){var t=this;t.__classNames=[],n.tooltipster._on("start",function(i){n.each(t.__classNames,function(t,o){if(i.instance._$origin.hasClass(o)){var a,e=n.tooltipster.instances("."+o),s=[];n.each(e,function(n,t){t!==i.instance&&t.status().open&&s.push(t)}),s.length>0&&(a=i.instance.option("animationDuration"),i.instance.option("animationDuration",0),i.instance.open(function(){n.each(s,function(n,t){a=t.option("animationDuration"),t.option("animationDuration",0),t.close(),t.option("animationDuration",a)}),i.instance.option("animationDuration",a)}),i.stop())}})})},group:function(n){this.__classNames.push(n)},ungroup:function(t){this.__classNames=n.grep(this.__classNames,function(n,i){return n!==t})}}}),n});