]> source.dussan.org Git - jquery-ui.git/commitdiff
Tooltip: Replacing mouseover/out with mouseenter/leave, dropping (for now) support...
authorjzaefferer <joern.zaefferer@gmail.com>
Thu, 25 Mar 2010 18:46:42 +0000 (14:46 -0400)
committerjzaefferer <joern.zaefferer@gmail.com>
Thu, 25 Mar 2010 18:46:42 +0000 (14:46 -0400)
tests/visual/tooltip/tooltip.html
ui/jquery.ui.tooltip.js

index 5b0f9059ab33c00c4e857b8fddfa6e4ea95101c1..cac2fbbd196edfc33e32d368d73b41038b82e865 100644 (file)
                
                function enable() {
                        // default
-                       $("#context1, form input, #childish").tooltip();
+                       $("#context1 a, form input, #childish").tooltip();
                        
                        // custom class, replaces ui-widget-content
-                       $("#context2").tooltip({
+                       $("#context2 [title]").tooltip({
                                tooltipClass: "ui-widget-header"
                        });
                        $("#right1").tooltip({
index 37413926460bf3f9ae814dbafdc27bc7d98eeea4..4d0be64589488c0e6743bf84fc2b1b8f57ea8122 100644 (file)
@@ -43,10 +43,10 @@ $.widget("ui.tooltip", {
                        .appendTo(this.tooltip);
                this.opacity = this.tooltip.css("opacity");
                this.element
-                       .bind("focus.tooltip mouseover.tooltip", function(event) {
+                       .bind("focus.tooltip mouseenter.tooltip", function(event) {
                                self.show($(event.target));
                        })
-                       .bind("blur.tooltip mouseout.tooltip", function(event) {
+                       .bind("blur.tooltip mouseleave.tooltip", function(event) {
                                self.close();
                        });
        },