cleanup(core): fix dart analyzer warnings
This commit is contained in:
parent
da9d041f90
commit
a37950293a
|
@ -45,7 +45,9 @@ export class ViewSplitter extends CompileStep {
|
||||||
if (current.element instanceof TemplateElement) {
|
if (current.element instanceof TemplateElement) {
|
||||||
if (!current.isViewRoot) {
|
if (!current.isViewRoot) {
|
||||||
var viewRoot = new CompileElement(DOM.createTemplate(''));
|
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;
|
viewRoot.isViewRoot = true;
|
||||||
control.addChild(viewRoot);
|
control.addChild(viewRoot);
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ export class View {
|
||||||
viewPorts: List<ViewPort>;
|
viewPorts: List<ViewPort>;
|
||||||
preBuiltObjects: List<PreBuiltObjects>;
|
preBuiltObjects: List<PreBuiltObjects>;
|
||||||
proto: ProtoView;
|
proto: ProtoView;
|
||||||
context: Object;
|
context: any;
|
||||||
contextWithLocals:ContextWithVariableBindings;
|
contextWithLocals:ContextWithVariableBindings;
|
||||||
constructor(proto:ProtoView, nodes:List<Node>, protoRecordRange:ProtoRecordRange, protoContextLocals:Map) {
|
constructor(proto:ProtoView, nodes:List<Node>, protoRecordRange:ProtoRecordRange, protoContextLocals:Map) {
|
||||||
this.proto = proto;
|
this.proto = proto;
|
||||||
|
|
Loading…
Reference in New Issue