Tooltip: Comment why we need to use closest

This commit is contained in:
Jörn Zaefferer 2012-10-19 17:04:35 -04:00
parent 5bd5ef15f9
commit 9d5f91ece2

View File

@ -127,6 +127,8 @@ $.widget( "ui.tooltip", {
open: function( event ) {
var target = $( event ? event.target : this.element )
// we need closest here due to mouseover bubbling,
// but always pointing at the same event target
.closest( this.options.items );
// No element to show a tooltip for