MCPcopy
hub / github.com/nilbuild/developer-roadmap / init

Method init

src/components/InteractiveRoadmap/topic.js:194–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

192 }
193
194 init() {
195 window.addEventListener('topic.click', this.handleTopicClick);
196 window.addEventListener('click', this.handleOverlayClick);
197 window.addEventListener('keydown', (e) => {
198 if (e.key.toLowerCase() === 'escape') {
199 this.close();
200 }
201 });
202 }
203 }
204

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected