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

Method addEventDelegator

dom/src/IsolateModule.ts:55–62  ·  view source on GitHub ↗
(fullScope: string, eventDelegator: EventDelegator)

Source from the content-addressed store, hash-verified

53 }
54
55 public addEventDelegator(fullScope: string, eventDelegator: EventDelegator) {
56 let delegators = this.delegatorsByFullScope.get(fullScope);
57 if (!delegators) {
58 delegators = [];
59 this.delegatorsByFullScope.set(fullScope, delegators);
60 }
61 delegators[delegators.length] = eventDelegator;
62 }
63
64 public reset() {
65 this.elementsByFullScope.clear();

Callers 1

eventsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected