aboutsummaryrefslogtreecommitdiffstats
path: root/demos/tooltip/tracking.html
diff options
context:
space:
mode:
Diffstat (limited to 'demos/tooltip/tracking.html')
-rw-r--r--demos/tooltip/tracking.html13
1 files changed, 6 insertions, 7 deletions
diff --git a/demos/tooltip/tracking.html b/demos/tooltip/tracking.html
index e3bb19e74..dd5dc9d92 100644
--- a/demos/tooltip/tracking.html
+++ b/demos/tooltip/tracking.html
@@ -13,12 +13,11 @@
$(function() {
$(".demo").tooltip({
open: function() {
- var tooltip = $(this).tooltip("widget");
- $(document).mousemove(function(event) {
- tooltip.position({
- my: "left center",
- at: "right center",
- offset: "25 25",
+ var tooltip = $( ".ui-tooltip" );
+ $(document).mousemove(function( event ) {
+ tooltip.position( {
+ my: "left+25 center",
+ at: "right+25 center",
of: event
});
})
@@ -26,7 +25,7 @@
.mousemove();
},
close: function() {
- $(document).unbind("mousemove");
+ $(document).unbind( "mousemove" );
}
});
});