- Dialog關閉並不是刪除了這個界面,而是觸發了‘hide’這個事件,下次用就不用重新加載了。樹在new的時候定義了tree的id並添加到了registry裏如果不刪除再新建一個就會導致id重複。在dialog ‘hide’的時候要記得把需要重置的刪除。
on(this, 'hide', function (/*e*/) {
if (this.tree) {
this.tree.destroy();
}
if (this.UXSPGrid) {
this.UXSPGrid.destroy();
}
this.destroyDescendants();
});