Skip to content

Commit ae3d351

Browse files
committed
Resizable: Fixed destroy method.
1 parent 4da1716 commit ae3d351

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/jquery.ui.resizable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,13 @@ $.widget("ui.resizable", $.ui.mouse, {
190190

191191
},
192192

193-
destroy: function() {
193+
_destroy: function() {
194194

195195
this._mouseDestroy();
196196

197197
var _destroy = function(exp) {
198198
$(exp).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing")
199-
.removeData("resizable").unbind(".resizable").find('.ui-resizable-handle').remove();
199+
.removeData("resizable").removeData("ui-resizable").unbind(".resizable").find('.ui-resizable-handle').remove();
200200
};
201201

202202
//TODO: Unwrap at same DOM position

0 commit comments

Comments
 (0)