Merge remote-tracking branch 'remotes/origin/tipsy'

This commit is contained in:
nikitasinelnikov
2019-01-22 11:46:07 +02:00
+3 -3
View File
@@ -177,15 +177,15 @@
}
};
if (!options.live) this.each(function() { get(this); });
if (!options.on) this.each(function() { get(this); });
if (options.trigger != 'manual') {
var eventIn = options.trigger == 'hover' ? 'mouseenter' : 'focus',
eventOut = options.trigger == 'hover' ? 'mouseleave' : 'blur';
if (options.live)
if (options.on)
$(document).on(eventIn, this.selector, enter).on(eventOut, this.selector, leave);
else
this.bind(eventIn, enter).bind(eventOut, leave);
this.on(eventIn, enter).on(eventOut, leave);
}
return this;