Resizable: Fixed destroy method.

This commit is contained in:
Scott González 2012-05-24 15:16:28 -04:00
parent 4da1716cfd
commit ae3d3515a7

View File

@ -190,13 +190,13 @@ $.widget("ui.resizable", $.ui.mouse, {
},
destroy: function() {
_destroy: function() {
this._mouseDestroy();
var _destroy = function(exp) {
$(exp).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing")
.removeData("resizable").unbind(".resizable").find('.ui-resizable-handle').remove();
.removeData("resizable").removeData("ui-resizable").unbind(".resizable").find('.ui-resizable-handle').remove();
};
//TODO: Unwrap at same DOM position