From d4827caa08245d416e552ed368dbab3d543bc029 Mon Sep 17 00:00:00 2001 From: gdi2290 Date: Mon, 1 Feb 2016 15:51:00 -0800 Subject: [PATCH] refactor(DomRootRenderer): allow registeredComponents access Closes #6584 --- modules/@angular/platform-browser/src/dom/dom_renderer.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/@angular/platform-browser/src/dom/dom_renderer.ts b/modules/@angular/platform-browser/src/dom/dom_renderer.ts index ef5e173e8b..77ade2596a 100644 --- a/modules/@angular/platform-browser/src/dom/dom_renderer.ts +++ b/modules/@angular/platform-browser/src/dom/dom_renderer.ts @@ -35,16 +35,16 @@ const TEMPLATE_COMMENT_TEXT = 'template bindings={}'; var TEMPLATE_BINDINGS_EXP = /^template bindings=(.*)$/g; export abstract class DomRootRenderer implements RootRenderer { - private _registeredComponents: Map = new Map(); + protected registeredComponents: Map = new Map(); constructor(public document: any, public eventManager: EventManager, public sharedStylesHost: DomSharedStylesHost, public animate: AnimationBuilder) {} renderComponent(componentProto: RenderComponentType): Renderer { - var renderer = this._registeredComponents.get(componentProto.id); + var renderer = this.registeredComponents.get(componentProto.id); if (isBlank(renderer)) { renderer = new DomRenderer(this, componentProto); - this._registeredComponents.set(componentProto.id, renderer); + this.registeredComponents.set(componentProto.id, renderer); } return renderer; }