aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/resizable.js
diff options
context:
space:
mode:
authorKonstantin Dinev <kdinev@mail.bw.edu>2017-02-28 18:21:46 +0200
committerScott González <scott.gonzalez@gmail.com>2017-04-17 14:58:12 -0400
commitc426b9a203271ab5e5e5f165a1d686c8281164bf (patch)
treeabc36e4094fe3b89973c221ba50a1781fb081771 /ui/widgets/resizable.js
parentc6e2b52d70b8caf920f382402aba9f04de7e32b2 (diff)
downloadjquery-ui-c426b9a203271ab5e5e5f165a1d686c8281164bf.tar.gz
jquery-ui-c426b9a203271ab5e5e5f165a1d686c8281164bf.zip
Resizable: Keep user-provided handles on destroy
Closes gh-1798 Ref gh-1795
Diffstat (limited to 'ui/widgets/resizable.js')
-rw-r--r--ui/widgets/resizable.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/widgets/resizable.js b/ui/widgets/resizable.js
index b5264ee53..36dd12514 100644
--- a/ui/widgets/resizable.js
+++ b/ui/widgets/resizable.js
@@ -187,15 +187,14 @@ $.widget( "ui.resizable", $.ui.mouse, {
_destroy: function() {
this._mouseDestroy();
+ this._addedHandles.remove();
var wrapper,
_destroy = function( exp ) {
$( exp )
.removeData( "resizable" )
.removeData( "ui-resizable" )
- .off( ".resizable" )
- .find( ".ui-resizable-handle" )
- .remove();
+ .off( ".resizable" );
};
// TODO: Unwrap at same DOM position