gochan-org / gochan

Default parameters should be placed after non-default ones JS-0302
Anti-pattern
Major
2 months agoa year old
Default parameters should be last
 75}
 76
 77class DropdownSetting extends Setting<ElementValue, HTMLSelectElement> {
 78	constructor(key: string, title: string, options:any[] = [], defaultVal: ElementValue, onSave = noop) { 79		super(key, title, defaultVal, onSave);
 80		this.element = this.createElement("<select/>");
 81		for(const option of options) {