cleanup(core): fix dart analyzer warnings

This commit is contained in:
vsavkin 2014-12-29 12:12:11 -08:00
parent da9d041f90
commit a37950293a
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -38,7 +38,7 @@ export class View {
viewPorts: List<ViewPort>;
preBuiltObjects: List<PreBuiltObjects>;
proto: ProtoView;
context: Object;
context: any;
contextWithLocals:ContextWithVariableBindings;
constructor(proto:ProtoView, nodes:List<Node>, protoRecordRange:ProtoRecordRange, protoContextLocals:Map) {
this.proto = proto;