aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-06-14 01:02:11 +0200
committerScott González <scott.gonzalez@gmail.com>2012-06-14 12:38:13 -0400
commit5c2cf39dff34b4598b214b1a2a1f3b48d15f0366 (patch)
tree31fb4184f5b0488e860f1d146abd5bbee6284e97 /demos
parentff39bed57a05ca060033187b8aecebafab357f78 (diff)
downloadjquery-ui-5c2cf39dff34b4598b214b1a2a1f3b48d15f0366.tar.gz
jquery-ui-5c2cf39dff34b4598b214b1a2a1f3b48d15f0366.zip
Tooltip: Add track option
Diffstat (limited to 'demos')
-rw-r--r--demos/tooltip/tracking.html22
1 files changed, 1 insertions, 21 deletions
diff --git a/demos/tooltip/tracking.html b/demos/tooltip/tracking.html
index 033bc9766..ab0237da6 100644
--- a/demos/tooltip/tracking.html
+++ b/demos/tooltip/tracking.html
@@ -19,27 +19,7 @@
<script>
$(function() {
$( ".demo" ).tooltip({
- position: {
- my: "left+25 center",
- at: "center"
- },
- open: function( event, ui ) {
- if ( !( /^mouse/.test( event.originalEvent.type ) ) ) {
- return;
- }
-
- var positionOption = $.extend( {}, $( this ).tooltip( "option", "position" ) );
- function position( event ) {
- positionOption.of = event;
- ui.tooltip.position( positionOption );
- }
- $( document ).bind( "mousemove.tooltip-position", position );
- // trigger once to override element-relative positioning
- position( event );
- },
- close: function() {
- $( document ).unbind( "mousemove.tooltip-position" );
- }
+ track: true
});
});
</script>