MCPcopy Index your code
hub / github.com/prettydiff/prettydiff / select

Function select

api/prettydiff-webtool.ts:714–721  ·  view source on GitHub ↗
(event:Event)

Source from the content-addressed store, hash-verified

712 }
713 },
714 select = function dom_load_select(event:Event):void {
715 const elly:HTMLSelectElement = <HTMLSelectElement>event.target || <HTMLSelectElement>event.srcElement;
716 selectDescription(elly);
717 method.app.options(event);
718 if (elly.getAttribute("id") === "option-color") {
719 method.event.colorScheme(event);
720 }
721 },
722 selectDescription = function dom_load_selectDescription(el:HTMLSelectElement):void {
723 const opts:HTMLCollectionOf<HTMLOptionElement> = el.getElementsByTagName("option"),
724 desc:string = opts[el.selectedIndex].getAttribute("data-description"),

Callers

nothing calls this directly

Calls 1

selectDescriptionFunction · 0.85

Tested by

no test coverage detected