From 19e72449f16dca7c2bca82ea830165ea0183ed36 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 9 Mar 2011 10:09:29 -0500 Subject: [PATCH] Effects: Handle just passing an effect name. --- ui/jquery.effects.core.js | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.5