mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Effects: Handle just passing an effect name.
This commit is contained in:
5
ui/jquery.effects.core.js
vendored
5
ui/jquery.effects.core.js
vendored
@@ -447,6 +447,11 @@ function _normalizeArguments( effect, options, speed, callback ) {
|
||||
// convert to an object
|
||||
effect = { effect: effect };
|
||||
|
||||
// catch (effect)
|
||||
if ( options === undefined ) {
|
||||
options = {};
|
||||
}
|
||||
|
||||
// catch (effect, callback)
|
||||
if ( $.isFunction( options ) ) {
|
||||
callback = options;
|
||||
|
||||
Reference in New Issue
Block a user