Permalink
Browse files

Resizable: Remove accidental exposure of internal data in events

Fixes #10148
Closes gh-1279
  • Loading branch information...
dekajp authored and scottgonzalez committed Jul 10, 2014
1 parent b4fb511 commit ffe60e39db568f7acc3fff4b1a9f9f3a1d0b7c62
Showing with 6 additions and 8 deletions.
  1. +6 −8 ui/resizable.js
View
@@ -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;
}
},

0 comments on commit ffe60e3

Please sign in to comment.