]> source.dussan.org Git - jquery-ui.git/commitdiff
Resizable: Remove accidental exposure of internal data in events
authorJyoti Deka <dekajp@gmail.com>
Thu, 10 Jul 2014 03:31:22 +0000 (23:31 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 16 Jul 2014 23:14:16 +0000 (19:14 -0400)
Fixes #10148
Closes gh-1279

ui/resizable.js

index b59f320130988cdfd9b3786e2de91dd3de7aa67a..869cc3ebe1c4b491bee4b4883e72db80f6c391e3 100644 (file)
@@ -645,9 +645,7 @@ $.widget("ui.resizable", $.ui.mouse, {
                        position: this.position,
                        size: this.size,
                        originalSize: this.originalSize,
-                       originalPosition: this.originalPosition,
-                       prevSize: this.prevSize,
-                       prevPosition: this.prevPosition
+                       originalPosition: this.originalPosition
                };
        }
 
@@ -761,7 +759,7 @@ $.ui.plugin.add( "resizable", "containment", {
                }
        },
 
-       resize: function( event, ui ) {
+       resize: function( event ) {
                var woset, hoset, isParent, isOffsetRelative,
                        that = $( this ).resizable( "instance" ),
                        o = that.options,
@@ -827,10 +825,10 @@ $.ui.plugin.add( "resizable", "containment", {
                }
 
                if ( !continueResize ){
-                       that.position.left = ui.prevPosition.left;
-                       that.position.top = ui.prevPosition.top;
-                       that.size.width = ui.prevSize.width;
-                       that.size.height = ui.prevSize.height;
+                       that.position.left = that.prevPosition.left;
+                       that.position.top = that.prevPosition.top;
+                       that.size.width = that.prevSize.width;
+                       that.size.height = that.prevSize.height;
                }
        },