From a37950293af5005f0e29aff64a16066121e5fcd3 Mon Sep 17 00:00:00 2001 From: vsavkin Date: Mon, 29 Dec 2014 12:12:11 -0800 Subject: [PATCH] cleanup(core): fix dart analyzer warnings --- modules/core/src/compiler/pipeline/view_splitter.js | 4 +++- modules/core/src/compiler/view.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/core/src/compiler/pipeline/view_splitter.js b/modules/core/src/compiler/pipeline/view_splitter.js index 627c396fe8..21caed37db 100644 --- a/modules/core/src/compiler/pipeline/view_splitter.js +++ b/modules/core/src/compiler/pipeline/view_splitter.js @@ -45,7 +45,9 @@ export class ViewSplitter extends CompileStep { if (current.element instanceof TemplateElement) { if (!current.isViewRoot) { var viewRoot = new CompileElement(DOM.createTemplate('')); - this._moveChildNodes(current.element.content, viewRoot.element.content); + var currentElement:TemplateElement = current.element; + var viewRootElement:TemplateElement = viewRoot.element; + this._moveChildNodes(currentElement.content, viewRootElement.content); viewRoot.isViewRoot = true; control.addChild(viewRoot); } diff --git a/modules/core/src/compiler/view.js b/modules/core/src/compiler/view.js index 652786c499..2ccf8a749a 100644 --- a/modules/core/src/compiler/view.js +++ b/modules/core/src/compiler/view.js @@ -38,7 +38,7 @@ export class View { viewPorts: List; preBuiltObjects: List; proto: ProtoView; - context: Object; + context: any; contextWithLocals:ContextWithVariableBindings; constructor(proto:ProtoView, nodes:List, protoRecordRange:ProtoRecordRange, protoContextLocals:Map) { this.proto = proto;