r3418 committed - button/tooltip: reverted that last hotifx, didn't really help; switche...

r3418 committed - button/tooltip: reverted that last hotifx, didn't really help; switche...


Revision: 3418
Author: joern.zaefferer
Date: Sat Nov 7 07:56:55 2009
Log: button/tooltip: reverted that last hotifx, didn't really help;
switched to event delegation tooltip for button demo
http://code.google.com/p/jquery-ui/source/detail?r=3418
Modified:
/branches/dev/tests/visual/button/default.html
/branches/dev/ui/jquery.ui.tooltip.js
=======================================
--- /branches/dev/tests/visual/button/default.html    Sat Nov 7 03:05:27 2009
+++ /branches/dev/tests/visual/button/default.html    Sat Nov 7 07:56:55 2009
@@ -29,7 +29,7 @@
            selection.buttons("destroy");
        }).click();
-        $("button").tooltip();
+        $().tooltip();
    });
    </script>
    <style>
=======================================
--- /branches/dev/ui/jquery.ui.tooltip.js    Sat Nov 7 03:05:27 2009
+++ /branches/dev/ui/jquery.ui.tooltip.js    Sat Nov 7 07:56:55 2009
@@ -68,7 +68,7 @@
        if (this.tooltip.is(":animated"))
            this.tooltip.stop().show().fadeTo("normal", this.opacity);
        else
-            this.tooltip.is(':visible') ? this.tooltip.show().fadeTo("normal",
this.opacity) : this.tooltip.fadeIn();
+            this.tooltip.is(':visible') ? this.tooltip.fadeTo("normal",
this.opacity) : this.tooltip.fadeIn();
    },
    close: function() {
@@ -79,9 +79,7 @@
        this.tooltip.attr("aria-hidden", "true");
        if (this.tooltip.is(':animated'))
-                this.tooltip.stop().fadeTo("normal", 0, function() {
-                    $(this).hide();
-                });
+                this.tooltip.stop().fadeTo("normal", 0);
            else
                this.tooltip.stop().fadeOut();