mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tooltip: Rename _show to _open.
This commit is contained in:
parent
ffb96bc972
commit
b4d75c1083
8
ui/jquery.ui.tooltip.js
vendored
8
ui/jquery.ui.tooltip.js
vendored
@ -75,19 +75,19 @@ $.widget("ui.tooltip", {
|
||||
this.current = target;
|
||||
this.currentTitle = target.attr("title");
|
||||
var content = this.options.content.call(target[0], function(response) {
|
||||
// IE may instantly serve a cached response, need to give it a chance to finish with _show before that
|
||||
// IE may instantly serve a cached response, need to give it a chance to finish with _open before that
|
||||
setTimeout(function() {
|
||||
// ignore async responses that come in after the tooltip is already hidden
|
||||
if (self.current == target)
|
||||
self._show(event, target, response);
|
||||
self._open(event, target, response);
|
||||
}, 13);
|
||||
});
|
||||
if (content) {
|
||||
self._show(event, target, content);
|
||||
self._open(event, target, content);
|
||||
}
|
||||
},
|
||||
|
||||
_show: function(event, target, content) {
|
||||
_open: function(event, target, content) {
|
||||
if (!content)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user