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

Method onOptionsChange

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

Source from the content-addressed store, hash-verified

136 }
137
138 onOptionsChange() {
139 const options = this.getEffectiveOptions();
140 this.contentRoot.toggleClass('wrap', options.wrap);
141 this.wrapButton.prop('title', '[' + (options.wrap ? 'ON' : 'OFF') + '] ' + this.wrapTitle);
142 this.updateState();
143 }
144
145 getEffectiveOptions() {
146 return this.options.get();

Callers 1

constructorMethod · 0.95

Calls 2

getEffectiveOptionsMethod · 0.95
updateStateMethod · 0.65

Tested by

no test coverage detected