]> source.dussan.org Git - jquery-ui.git/commitdiff
alsoResize option bug fixes
authorEduardo Lundgren <eduardolundgren@gmail.com>
Thu, 26 Jun 2008 03:25:29 +0000 (03:25 +0000)
committerEduardo Lundgren <eduardolundgren@gmail.com>
Thu, 26 Jun 2008 03:25:29 +0000 (03:25 +0000)
ui/ui.resizable.js

index a253ac6ecbe6989f7cbfe053413758407a2b5d92..5192129b4f9102491a79af7b9c6307611581f650 100644 (file)
@@ -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);
                }