Skip to content

Commit dbc30ed

Browse files
committed
#1515 fix
1 parent 6ecbca6 commit dbc30ed

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/component/Base.mjs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -857,22 +857,20 @@ class Base extends CoreBase {
857857
*/
858858
destroy(updateParentVdom=false, silent=false) {
859859
let me = this,
860-
parent, parentVdom, vdomId;
860+
parent, parentVdom;
861861

862862
if (updateParentVdom && me.parentId) {
863-
vdomId = me.getVdomRoot().id;
864-
865863
if (me.parentId === 'document.body') {
866864
Neo.currentWorker.promiseMessage('main', {
867865
action : 'updateDom',
868866
appName: me.appName,
869-
deltas : [{action: 'removeNode', id: vdomId}]
867+
deltas : [{action: 'removeNode', id: me.vdom.id}]
870868
});
871869
} else {
872870
parent = Neo.getComponent(me.parentId);
873871
parentVdom = parent.vdom;
874872

875-
VDomUtil.removeVdomChild(parentVdom, vdomId);
873+
VDomUtil.removeVdomChild(parentVdom, me.vdom.id);
876874
parent[silent ? '_vdom' : 'vdom'] = parentVdom;
877875
}
878876
}

0 commit comments

Comments
 (0)