]> source.dussan.org Git - jquery-ui.git/commitdiff
Fixed $(this).data('resizable') access to wrapped elements
authorEduardo Lundgren <eduardolundgren@gmail.com>
Fri, 6 Jun 2008 18:11:45 +0000 (18:11 +0000)
committerEduardo Lundgren <eduardolundgren@gmail.com>
Fri, 6 Jun 2008 18:11:45 +0000 (18:11 +0000)
ui/source/ui.resizable.js

index ba8c12ea8a23e8d28ab083c878c7b07d8b01ddf2..29dccb33b6321b030429ed34a999f23699ab8d88 100644 (file)
@@ -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")