From 375fc8d7309c72bd930384bea2e5f4d7e24f81a6 Mon Sep 17 00:00:00 2001 From: maciejmrozinski Date: Sun, 21 Oct 2012 02:51:11 +0200 Subject: [PATCH] Effect: check if option parameter is an object. Fixed #8670 - null reference when using effects --- ui/jquery.ui.effect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.effect.js b/ui/jquery.ui.effect.js index 65108e7ba4e..aa9277d17fc 100644 --- a/ui/jquery.ui.effect.js +++ b/ui/jquery.ui.effect.js @@ -1055,7 +1055,7 @@ function _normalizeArguments( effect, options, speed, callback ) { effect = { effect: effect }; // catch (effect) - if ( options === undefined ) { + if ( !$.isPlainObject( options ) ) { options = {}; }