...
_destroy:
function
() {
if
(
this
.resizing) {
this
.resizing.destroy();
}
if
(
this
.dragging) {
this
.dragging.destroy();
}
this
.wrapper.off(NS).children(KWINDOWCONTENT).off(NS).end().find(
'.k-resize-handle,.k-window-titlebar'
).off(NS);
$(window).off(
'resize'
+ NS +
this
._marker);
$(window).off(MODAL_NS);
$(window).off(NS);
clearTimeout(
this
._loadingIconTimeout);
Widget.fn.destroy.call(
this
);
this
.unbind(undefined);
kendo.destroy(
this
.wrapper);
this
._removeOverlay(
true
);
},
destroy:
function
() {
this
._destroy();
this
.wrapper.empty().remove();
this
.wrapper =
this
.appendTo =
this
.element = $();
},
...
...
destroy:
function
() {
var
that =
this
;
that._destroy();
Widget.fn.destroy.call(that);
that.wrapper.remove();
that.wrapper = that.element = $();
},
_destroy:
function
() {
var
that =
this
;
var
ns =
'.'
+ NS;
that.wrapper.off(ns);
that.element.off(ns);
that.wrapper.find(KICONCLOSE +
','
+ KBUTTONGROUP +
' > '
+ KBUTTON).off(ns);
that._stopCenterOnResize();
},
...