MCPcopy Create free account
hub / github.com/cyclejs/cyclejs / constructor

Method constructor

dom/src/MainDOMSource.ts:89–101  ·  view source on GitHub ↗
(private _rootElement$: Stream<Element>,
              private _sanitation$: Stream<null>,
              private _namespace: Array<string> = [],
              public _isolateModule: IsolateModule,
              public _delegators: Map<string, EventDelegator>,
              private _name: string)

Source from the content-addressed store, hash-verified

87export class MainDOMSource implements DOMSource {
88
89 constructor(private _rootElement$: Stream<Element>,
90 private _sanitation$: Stream<null>,
91 private _namespace: Array<string> = [],
92 public _isolateModule: IsolateModule,
93 public _delegators: Map<string, EventDelegator>,
94 private _name: string) {
95 this.isolateSource = isolateSource;
96 this.isolateSink = (sink, scope) => {
97 const prevFullScope = getFullScope(this._namespace);
98 const nextFullScope = [prevFullScope, scope].filter(x => !!x).join('-');
99 return internalIsolateSink(sink, nextFullScope) as Stream<VNode>;
100 };
101 }
102
103 public elements(): MemoryStream<Element> {
104 let output$: Stream<Element | Array<Element>>;

Callers

nothing calls this directly

Calls 2

getFullScopeFunction · 0.90
filterMethod · 0.65

Tested by

no test coverage detected