Fixed bugs with Sleeve mechanics. Updated documentation to use RTD theme

This commit is contained in:
danielyxie
2019-01-20 14:57:38 -08:00
parent 17bfbfeb80
commit 5573e778bb
43 changed files with 4064 additions and 2491 deletions

View File

@@ -1,9 +1,11 @@
export function getSelectValue(selector: HTMLSelectElement | null): string {
if (selector == null) { return ""; }
return selector[selector.selectedIndex].value;
if (selector.options.length <= 0) { return ""; }
return selector.options[selector.selectedIndex].value;
}
export function getSelectText(selector: HTMLSelectElement | null): string {
if (selector == null) { return ""; }
return selector[selector.selectedIndex].text;
if (selector.options.length <= 0) { return ""; }
return selector.options[selector.selectedIndex].text;
}