Effects: Handle just passing an effect name.

This commit is contained in:
Scott González
2011-03-09 10:09:29 -05:00
parent 3875cf63e4
commit 19e72449f1

View File

@@ -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;