aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.tooltip.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-10-24 10:00:39 -0400
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-10-24 10:02:21 -0400
commitba752cf7eda841ded93688ab3167b5515fa1660c (patch)
tree5520ed37429e77725d905481a0cf7e4f39b105bf /ui/jquery.ui.tooltip.js
parent1fcccd45ce0eb73c4f54650d7929d788847f3e37 (diff)
downloadjquery-ui-ba752cf7eda841ded93688ab3167b5515fa1660c.tar.gz
jquery-ui-ba752cf7eda841ded93688ab3167b5515fa1660c.zip
Tooltip: Run _disable when disabled option is set on create. Fixes #8712 - Tooltip: Disabled tooltips on initialization.
Diffstat (limited to 'ui/jquery.ui.tooltip.js')
-rw-r--r--ui/jquery.ui.tooltip.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js
index 43788a082..f93dd7a2f 100644
--- a/ui/jquery.ui.tooltip.js
+++ b/ui/jquery.ui.tooltip.js
@@ -75,6 +75,10 @@ $.widget( "ui.tooltip", {
this.tooltips = {};
// IDs of parent tooltips where we removed the title attribute
this.parents = {};
+
+ if ( this.options.disabled ) {
+ this._disable();
+ }
},
_setOption: function( key, value ) {