aboutsummaryrefslogtreecommitdiffstats
path: root/ui/source/ui.resizable.js
diff options
context:
space:
mode:
authorEduardo Lundgren <eduardolundgren@gmail.com>2008-06-06 18:11:45 +0000
committerEduardo Lundgren <eduardolundgren@gmail.com>2008-06-06 18:11:45 +0000
commit50e2688fcd70647530adbd5b2a4d42ad62e5e079 (patch)
treec3e5787a14a78300feeea93600c1303a8857d7dc /ui/source/ui.resizable.js
parent59645bd754ed4a4c2120fc2168fb3bcb3165d545 (diff)
downloadjquery-ui-50e2688fcd70647530adbd5b2a4d42ad62e5e079.tar.gz
jquery-ui-50e2688fcd70647530adbd5b2a4d42ad62e5e079.zip
Fixed $(this).data('resizable') access to wrapped elements
Diffstat (limited to 'ui/source/ui.resizable.js')
-rw-r--r--ui/source/ui.resizable.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/source/ui.resizable.js b/ui/source/ui.resizable.js
index ba8c12ea8..29dccb33b 100644
--- a/ui/source/ui.resizable.js
+++ b/ui/source/ui.resizable.js
@@ -81,6 +81,9 @@ $.widget("ui.resizable", $.extend($.ui.mouse, {
var oel = this.element; this.element = this.element.parent();
+ // store instance on wrapper
+ this.element.data('resizable', this);
+
//Move margins to the wrapper
this.element.css({ marginLeft: oel.css("marginLeft"), marginTop: oel.css("marginTop"),
marginRight: oel.css("marginRight"), marginBottom: oel.css("marginBottom")