]> source.dussan.org Git - jquery-ui.git/commitdiff
Tooltip: Use ui-tooltip-open instead of tooltip-open for data key.
authorScott González <scott.gonzalez@gmail.com>
Mon, 5 Nov 2012 20:03:15 +0000 (15:03 -0500)
committerScott González <scott.gonzalez@gmail.com>
Mon, 5 Nov 2012 20:03:15 +0000 (15:03 -0500)
ui/jquery.ui.tooltip.js

index e996d0d4ed61655509d6c1856fdef022d8e9a28d..5145884a3f115f6c7aa43898ff84200d0fe4195f 100644 (file)
@@ -159,14 +159,14 @@ $.widget( "ui.tooltip", {
                        target.data( "ui-tooltip-title", target.attr( "title" ) );
                }
 
-               target.data( "tooltip-open", true );
+               target.data( "ui-tooltip-open", true );
 
                // kill parent tooltips, custom or native, for hover
                if ( event && event.type === "mouseover" ) {
                        target.parents().each(function() {
                                var parent = $( this ),
                                        blurEvent;
-                               if ( parent.data( "tooltip-open" ) ) {
+                               if ( parent.data( "ui-tooltip-open" ) ) {
                                        blurEvent = $.Event( "blur" );
                                        blurEvent.target = blurEvent.currentTarget = this;
                                        that.close( blurEvent, true );
@@ -196,7 +196,7 @@ $.widget( "ui.tooltip", {
 
                content = contentOption.call( target[0], function( response ) {
                        // ignore async response if tooltip was closed already
-                       if ( !target.data( "tooltip-open" ) ) {
+                       if ( !target.data( "ui-tooltip-open" ) ) {
                                return;
                        }
                        // IE may instantly serve a cached response for ajax requests
@@ -325,7 +325,7 @@ $.widget( "ui.tooltip", {
                        that._removeTooltip( $( this ) );
                });
 
-               target.removeData( "tooltip-open" );
+               target.removeData( "ui-tooltip-open" );
                this._off( target, "mouseleave focusout keyup" );
                // Remove 'remove' binding only on delegated targets
                if ( target[0] !== this.element[0] ) {