mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fix tipsy.js error
This commit is contained in:
@@ -178,14 +178,16 @@
|
||||
};
|
||||
|
||||
if (!options.live) this.each(function() { get(this); });
|
||||
|
||||
|
||||
if (options.trigger != 'manual') {
|
||||
var binder = options.live ? 'live' : 'bind',
|
||||
eventIn = options.trigger == 'hover' ? 'mouseenter' : 'focus',
|
||||
var eventIn = options.trigger == 'hover' ? 'mouseenter' : 'focus',
|
||||
eventOut = options.trigger == 'hover' ? 'mouseleave' : 'blur';
|
||||
this[binder](eventIn, enter)[binder](eventOut, leave);
|
||||
if (options.live)
|
||||
$(document).on(eventIn, this.selector, enter).on(eventOut, this.selector, leave);
|
||||
else
|
||||
this.bind(eventIn, enter).bind(eventOut, leave);
|
||||
}
|
||||
|
||||
|
||||
return this;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user