MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / registerCallbacks

Method registerCallbacks

static/panes/output.ts:120–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118 }
119
120 override registerCallbacks() {
121 this.options.on('change', this.onOptionsChange.bind(this));
122 this.eventHub.on('compiling', this.onCompiling, this);
123 this.selectAllButton.on('click', this.onSelectAllButton.bind(this));
124
125 this.clickCallback = e => {
126 this.onClickCallback(e);
127 };
128
129 this.keydownCallback = e => {
130 this.onKeydownCallback(e);
131 };
132
133 $(document).on('click', this.clickCallback);
134 // domRoot is not sufficient here
135 $(document).on('keydown', this.keydownCallback);
136 }
137
138 onOptionsChange() {
139 const options = this.getEffectiveOptions();

Callers

nothing calls this directly

Calls 3

onClickCallbackMethod · 0.95
onKeydownCallbackMethod · 0.95
onMethod · 0.45

Tested by

no test coverage detected