alsoResize option bug fixes

This commit is contained in:
Eduardo Lundgren 2008-06-26 03:25:29 +00:00
parent 76f414bc5e
commit 70c593f441

View 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);
}