diff options
author | Jyoti Deka <dekajp@gmail.com> | 2014-07-09 23:31:22 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2014-07-16 19:14:16 -0400 |
commit | ffe60e39db568f7acc3fff4b1a9f9f3a1d0b7c62 (patch) | |
tree | ee5c8c9dcf7bfba4082484393318ad77c8263e89 /ui/resizable.js | |
parent | b4fb51199dcdaf08d959cfb8a6d5f5a6f8e76d75 (diff) | |
download | jquery-ui-ffe60e39db568f7acc3fff4b1a9f9f3a1d0b7c62.tar.gz jquery-ui-ffe60e39db568f7acc3fff4b1a9f9f3a1d0b7c62.zip |
Resizable: Remove accidental exposure of internal data in events
Fixes #10148
Closes gh-1279
Diffstat (limited to 'ui/resizable.js')
-rw-r--r-- | ui/resizable.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/ui/resizable.js b/ui/resizable.js index b59f32013..869cc3ebe 100644 --- a/ui/resizable.js +++ b/ui/resizable.js @@ -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; } }, |