MCPcopy Create free account
hub / github.com/cyclejs/cyclejs / cleanupVNode

Method cleanupVNode

dom/src/IsolateModule.ts:30–38  ·  view source on GitHub ↗
({data, elm}: VNode)

Source from the content-addressed store, hash-verified

28 }
29
30 private cleanupVNode({data, elm}: VNode) {
31 const fullScope: string = (data || {} as any).isolate || '';
32 const isCurrentElm = this.elementsByFullScope.get(fullScope) === elm;
33 const isScopeBeingUpdated = this.fullScopesBeingUpdated.indexOf(fullScope) >= 0;
34 if (fullScope && isCurrentElm && !isScopeBeingUpdated) {
35 this.elementsByFullScope.delete(fullScope);
36 this.delegatorsByFullScope.delete(fullScope);
37 }
38 }
39
40 public getElement(fullScope: string): Element | undefined {
41 return this.elementsByFullScope.get(fullScope);

Callers 2

destroyMethod · 0.80
removeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected