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

Method selectorHasOption

static/settings.ts:504–506  ·  view source on GitHub ↗
(selector: JQuery, option: string)

Source from the content-addressed store, hash-verified

502 }
503
504 private selectorHasOption(selector: JQuery, option: string): boolean {
505 return selector.children(`[value=${option}]`).length > 0;
506 }
507
508 private onThemeChange() {
509 // We can be called when:

Callers 1

onThemeChangeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected