diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-10-05 11:26:49 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-10-05 11:26:49 -0400 |
commit | 96f2aa4c72b5f29782b0736ed95468e50d338d6e (patch) | |
tree | 71a3a5608b36f783841db7c2a220d072df68ac41 /ui/jquery.ui.tooltip.js | |
parent | f417a92c544d48dd61134b2d60336aaebf405afa (diff) | |
download | jquery-ui-96f2aa4c72b5f29782b0736ed95468e50d338d6e.tar.gz jquery-ui-96f2aa4c72b5f29782b0736ed95468e50d338d6e.zip |
Tooltip: Check if event exists before checking properties in open(). Fixes #8626 - Programatically opening a tooltip with out giving an event results in a javascript error.
Diffstat (limited to 'ui/jquery.ui.tooltip.js')
-rw-r--r-- | ui/jquery.ui.tooltip.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js index a97d698e3..32aad6487 100644 --- a/ui/jquery.ui.tooltip.js +++ b/ui/jquery.ui.tooltip.js @@ -216,7 +216,7 @@ $.widget( "ui.tooltip", { positionOption.of = event; tooltip.position( positionOption ); } - if ( this.options.track && /^mouse/.test( event.originalEvent.type ) ) { + if ( this.options.track && event && /^mouse/.test( event.originalEvent.type ) ) { positionOption = $.extend( {}, this.options.position ); this._on( this.document, { mousemove: position |