| 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); |