function _normalizeArguments( effect, options, speed, callback ) {

      // allow passing all options as the first parameter
      if ( $.isPlainObject( effect ) ) {
        options = effect;
        effect = effect.effect;
      }

      // convert to an object
      effect = { effect: effect };

      // catch (effect, null, ...)
      if ( options == null ) {
        options = {};
      }

      // catch (effect, callback)
      if ( $.isFunction( options ) ) {
        callback = options;
        speed = null;
        options = {};
      }

      // catch (effect, speed, ?)
      if ( typeof options === "number" || $.fx.speeds[ options ] ) {
        callback = speed;
        speed = options;
        options = {};
      }

      // catch (effect, options, callback)
      if ( $.isFunction( speed ) ) {
        callback = speed;
        speed = null;
      }

      // add options to effect
      if ( options ) {
        $.extend( effect, options );
      }

      speed = speed || options.duration;
      effect.duration = $.fx.off ? 0 :
        typeof speed === "number" ? speed :
          speed in $.fx.speeds ? $.fx.speeds[ speed ] :
            $.fx.speeds._default;

      effect.complete = callback || options.complete;

      return effect;
    }
// return an effect options object for the given parameters:
return an effect options object for the given parameters.
return an effect options object for the given parameters .
function _normalizeArguments( effect, options, speed, callback ) {
      if ( $.isPlainObject( effect ) ) {
        options = effect;
        effect = effect.effect;
      }
      effect = { effect: effect };
      if ( options == null ) {
        options = {};
      }
      if ( $.isFunction( options ) ) {
        callback = options;
        speed = null;
        options = {};
      }
      if ( typeof options === "number" || $.fx.speeds[ options ] ) {
        callback = speed;
        speed = options;
        options = {};
      }
      if ( $.isFunction( speed ) ) {
        callback = speed;
        speed = null;
      }
      if ( options ) {
        $.extend( effect, options );
      }
      speed = speed || options.duration;
      effect.duration = $.fx.off ? 0 :
        typeof speed === "number" ? speed :
          speed in $.fx.speeds ? $.fx.speeds[ speed ] :
            $.fx.speeds._default;
      effect.complete = callback || options.complete;
      return effect;
    }
function _normalizeArguments ( effect , options , speed , callback ) { if ( $ . isPlainObject ( effect ) ) { options = effect ; effect = effect . effect ; } effect = { effect : effect } ; if ( options == null ) { options = { } ; } if ( $ . isFunction ( options ) ) { callback = options ; speed = null ; options = { } ; } if ( typeof options === "number" || $ . fx . speeds [ options ] ) { callback = speed ; speed = options ; options = { } ; } if ( $ . isFunction ( speed ) ) { callback = speed ; speed = null ; } if ( options ) { $ . extend ( effect , options ) ; } speed = speed || options . duration ; effect . duration = $ . fx . off ? 0 : typeof speed === "number" ? speed : speed in $ . fx . speeds ? $ . fx . speeds [ speed ] : $ . fx . speeds . _default ; effect . complete = callback || options . complete ; return effect ; }
return an effect options object for the given parameters:
return an effect options object for the given parameters :
// allow passing all options as the first parameter // convert to an object // catch (effect, null, ...) // catch (effect, callback) // catch (effect, speed, ?) // catch (effect, options, callback) // add options to effect