From: Scott González Date: Wed, 9 Mar 2011 15:09:29 +0000 (-0500) Subject: Effects: Handle just passing an effect name. X-Git-Tag: 1.9m5~234 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=19e72449f16dca7c2bca82ea830165ea0183ed36;p=jquery-ui.git Effects: Handle just passing an effect name. --- diff --git a/ui/jquery.effects.core.js b/ui/jquery.effects.core.js index 6024c36b0..71f775aa1 100644 --- a/ui/jquery.effects.core.js +++ b/ui/jquery.effects.core.js @@ -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;