aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/ui.dialog.js2
-rw-r--r--ui/ui.resizable.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js
index 5b2ce119c..2cb4d4447 100644
--- a/ui/ui.dialog.js
+++ b/ui/ui.dialog.js
@@ -308,7 +308,7 @@ $.widget("ui.dialog", {
this.uiDialog.resizable({
cancel: '.ui-dialog-content',
- alsoResize: this.element[0],
+ alsoResize: this.element,
helper: options.resizeHelper,
maxWidth: options.maxWidth,
maxHeight: options.maxHeight,
diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js
index 84cd6e4b5..c7b8524e3 100644
--- a/ui/ui.resizable.js
+++ b/ui/ui.resizable.js
@@ -606,7 +606,7 @@ $.ui.plugin.add("resizable", "alsoResize", {
});
};
- if (typeof(o.alsoResize) == 'object' && !o.alsoResize.parentNode) {
+ if (typeof(o.alsoResize) == 'object' && !o.alsoResize.nodeType) {
$.each(o.alsoResize, function(exp, c) { _alsoResize(exp, c); });
}else{
_alsoResize(o.alsoResize);