diff options
author | gnarf <gnarf@gnarf.net> | 2011-05-02 07:49:11 -0500 |
---|---|---|
committer | gnarf <gnarf@gnarf.net> | 2011-05-02 07:49:11 -0500 |
commit | c13ef9e037d9ba534697f66d213bbb324db85117 (patch) | |
tree | 0f766eb0c338add5d7e9d7c3effa968364e3b48d /ui | |
parent | c9fb4528673f94a3aa338d113b9ebb72f346b900 (diff) | |
download | jquery-ui-c13ef9e037d9ba534697f66d213bbb324db85117.tar.gz jquery-ui-c13ef9e037d9ba534697f66d213bbb324db85117.zip |
Widget: show/hide effects added BackCompat
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.widget.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index 6a9bd3641..a74e6b77b 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -365,7 +365,7 @@ $.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) { if (options.delay) { element.delay( options.delay ); } - if ( hasOptions && $.effects && $.effects.effect[ effectName ] ) { + if ( hasOptions && $.effects && ( $.effects.effect[ effectName ] || $.uiBackCompat !== false && $.effects[ effectName ] ) ) { element[ method ]( options ); } else if ( effectName !== method && element[ effectName ] ) { element[ effectName ]( options.duration, options.easing, callback ); @@ -384,7 +384,7 @@ $.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) { if ( $.uiBackCompat !== false ) { $.Widget.prototype._getCreateOptions = function() { return $.metadata && $.metadata.get( this.element[0] )[ this.widgetName ]; - } + }; } })( jQuery ); |