mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 14:43:49 +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') {
|
if (options.trigger != 'manual') {
|
||||||
var eventIn = options.trigger == 'hover' ? 'mouseenter' : 'focus',
|
var eventIn = options.trigger == 'hover' ? 'mouseenter' : 'focus',
|
||||||
eventOut = options.trigger == 'hover' ? 'mouseleave' : 'blur';
|
eventOut = options.trigger == 'hover' ? 'mouseleave' : 'blur';
|
||||||
if (options.live)
|
if (options.on)
|
||||||
$(document).on(eventIn, this.selector, enter).on(eventOut, this.selector, leave);
|
$(document).on(eventIn, this.selector, enter).on(eventOut, this.selector, leave);
|
||||||
else
|
else
|
||||||
this.bind(eventIn, enter).bind(eventOut, leave);
|
this.on(eventIn, enter).on(eventOut, leave);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
Reference in New Issue
Block a user