39 lines
1.1 KiB
JavaScript
Raw Normal View History

import {AST} from 'angular2/change_detection';
2015-04-02 14:40:49 -07:00
import {SetterFn} from 'angular2/src/reflection/types';
import {List, ListWrapper} from 'angular2/src/facade/collection';
import * as protoViewModule from './proto_view';
export class ElementBinder {
contentTagSelector: string;
textNodeIndices: List<number>;
nestedProtoView: protoViewModule.ProtoView;
eventLocals: AST;
eventNames: List<string>;
componentId: string;
parentIndex:number;
distanceToParent:number;
2015-04-02 14:40:49 -07:00
propertySetters: Map<string, SetterFn>;
constructor({
textNodeIndices,
contentTagSelector,
nestedProtoView,
componentId,
eventLocals,
eventNames,
parentIndex,
2015-04-02 14:40:49 -07:00
distanceToParent,
propertySetters
}) {
this.textNodeIndices = textNodeIndices;
this.contentTagSelector = contentTagSelector;
this.nestedProtoView = nestedProtoView;
this.componentId = componentId;
this.eventLocals = eventLocals;
this.eventNames = eventNames;
this.parentIndex = parentIndex;
this.distanceToParent = distanceToParent;
2015-04-02 14:40:49 -07:00
this.propertySetters = propertySetters;
}
}