mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Merge remote-tracking branch 'remotes/origin/tipsy'
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user