fixed alsoResize to also accept vanilla DOM nodes ( fixes #3693 )

This commit is contained in:
Paul Bakaus 2008-12-23 14:28:47 +00:00
parent 8b956e5389
commit 3283a205c1

View File

@ -577,7 +577,7 @@ $.ui.plugin.add("resizable", "alsoResize", {
});
};
if (typeof(o.alsoResize) == 'object') {
if (typeof(o.alsoResize) == 'object' && !o.alsoResize.parentNode) {
if (o.alsoResize.length) { o.alsoResize = o.alsoResize[0]; _store(o.alsoResize); }
else { $.each(o.alsoResize, function(exp, c) { _store(exp); }); }
}else{