From ffe60e39db568f7acc3fff4b1a9f9f3a1d0b7c62 Mon Sep 17 00:00:00 2001 From: Jyoti Deka Date: Wed, 9 Jul 2014 23:31:22 -0400 Subject: Resizable: Remove accidental exposure of internal data in events Fixes #10148 Closes gh-1279 --- ui/resizable.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'ui') 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; } }, -- cgit v1.2.3