Skip to content

Commit ffe60e3

Browse files
dekajpscottgonzalez
authored andcommitted
Resizable: Remove accidental exposure of internal data in events
Fixes #10148 Closes jquerygh-1279
1 parent b4fb511 commit ffe60e3

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

ui/resizable.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -645,9 +645,7 @@ $.widget("ui.resizable", $.ui.mouse, {
645645
position: this.position,
646646
size: this.size,
647647
originalSize: this.originalSize,
648-
originalPosition: this.originalPosition,
649-
prevSize: this.prevSize,
650-
prevPosition: this.prevPosition
648+
originalPosition: this.originalPosition
651649
};
652650
}
653651

@@ -761,7 +759,7 @@ $.ui.plugin.add( "resizable", "containment", {
761759
}
762760
},
763761

764-
resize: function( event, ui ) {
762+
resize: function( event ) {
765763
var woset, hoset, isParent, isOffsetRelative,
766764
that = $( this ).resizable( "instance" ),
767765
o = that.options,
@@ -827,10 +825,10 @@ $.ui.plugin.add( "resizable", "containment", {
827825
}
828826

829827
if ( !continueResize ){
830-
that.position.left = ui.prevPosition.left;
831-
that.position.top = ui.prevPosition.top;
832-
that.size.width = ui.prevSize.width;
833-
that.size.height = ui.prevSize.height;
828+
that.position.left = that.prevPosition.left;
829+
that.position.top = that.prevPosition.top;
830+
that.size.width = that.prevSize.width;
831+
that.size.height = that.prevSize.height;
834832
}
835833
},
836834

0 commit comments

Comments
 (0)