aboutsummaryrefslogtreecommitdiffstats
path: root/demos/tooltip/custom-animation.html
diff options
context:
space:
mode:
Diffstat (limited to 'demos/tooltip/custom-animation.html')
-rw-r--r--demos/tooltip/custom-animation.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/demos/tooltip/custom-animation.html b/demos/tooltip/custom-animation.html
index a9d0df66e..a9745a062 100644
--- a/demos/tooltip/custom-animation.html
+++ b/demos/tooltip/custom-animation.html
@@ -11,12 +11,15 @@
<link type="text/css" href="../demos.css" rel="stylesheet" />
<script type="text/javascript">
$(function() {
+ // TODO overhaul this with custom animation API
$(".demo").tooltip({
open: function() {
- $(this).tooltip("widget").stop(false, true).hide().slideDown();
+ $(".ui-tooltip").stop(false, true).hide().slideDown();
},
close: function() {
- $(this).tooltip("widget").stop(false, true).show().slideUp();
+ $(".ui-tooltip").stop(false, false).show().slideUp(function() {
+ $(this).remove();
+ });
}
});
});