From e5267d85c346005f0300580992d56f65f9326613 Mon Sep 17 00:00:00 2001 From: Jyoti Deka Date: Wed, 9 Jul 2014 23:31:22 -0400 Subject: [PATCH] Resizable:Resizable is leaking internal data in events Fixes #10148 --- ui/resizable.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/ui/resizable.js b/ui/resizable.js index b59f3201309..869cc3ebe1c 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; } },