Skip to content
Permalink
Browse files

Effects: Handle just passing an effect name.

  • Loading branch information...
scottgonzalez committed Mar 9, 2011
1 parent 3875cf6 commit 19e72449f16dca7c2bca82ea830165ea0183ed36
Showing with 5 additions and 0 deletions.
  1. +5 −0 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;

0 comments on commit 19e7244

Please sign in to comment.
You can’t perform that action at this time.