aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.widget.js
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2011-04-21 14:30:42 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2011-04-21 14:30:42 +0200
commit3bb9ab262670328de9eb9a97892e9cf85c55c7d9 (patch)
treecf4101b64c30d93af925d652e13efdda02c029d1 /ui/jquery.ui.widget.js
parent3950a0515d58a8af2840f419bcd5cb8fd28b4de2 (diff)
downloadjquery-ui-3bb9ab262670328de9eb9a97892e9cf85c55c7d9.tar.gz
jquery-ui-3bb9ab262670328de9eb9a97892e9cf85c55c7d9.zip
Tooltip: Add support for delaying showing/hiding. Still need to figure
out how to combine that with non-animated show/hide.
Diffstat (limited to 'ui/jquery.ui.widget.js')
-rw-r--r--ui/jquery.ui.widget.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js
index 9593c1eaf..9634eaa1f 100644
--- a/ui/jquery.ui.widget.js
+++ b/ui/jquery.ui.widget.js
@@ -359,7 +359,9 @@ $.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
var hasOptions = !$.isEmptyObject( options ),
effectName = options.effect || defaultEffect;
options.complete = callback;
-
+ if (options.delay) {
+ element.delay( options.delay );
+ }
if ( hasOptions && $.effects && $.effects[ effectName ] ) {
element[ method ]( options );
} else if ( element[ effectName ] ) {