From 70c593f4412c159797d1a6ae9ee1f1e4131b2a43 Mon Sep 17 00:00:00 2001 From: Eduardo Lundgren Date: Thu, 26 Jun 2008 03:25:29 +0000 Subject: [PATCH] alsoResize option bug fixes --- ui/ui.resizable.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js index a253ac6ec..5192129b4 100644 --- a/ui/ui.resizable.js +++ b/ui/ui.resizable.js @@ -722,7 +722,8 @@ $.ui.plugin.add("resizable", "alsoResize", { }; if (typeof(o.alsoResize) == 'object') { - $.each(o.alsoResize, function(exp, c) { _store(exp); }); + if (o.alsoResize.length) { o.alsoResize = o.alsoResize[0]; _store(o.alsoResize); } + else { $.each(o.alsoResize, function(exp, c) { _store(exp); }); } }else{ _store(o.alsoResize); } -- 2.39.5