Got the "removeChild" error to go away by doing this.
This commit is contained in:
parent
9deb9087e6
commit
d6ab5e62ce
4
js/ui.js
4
js/ui.js
|
@ -588,9 +588,7 @@ function SetPartsOfSpeech (selectId) {
|
|||
var wordFiltersSelected = GetSelectedFilters();
|
||||
|
||||
// Clear parts of speech.
|
||||
for (var i = partsOfSpeechSelect.options.length; i > 0; i--) {
|
||||
partsOfSpeechSelect.removeChild(partsOfSpeechSelect.options[i]);
|
||||
}
|
||||
partsOfSpeechSelect.innerHTML = "";
|
||||
wordFilterOptions.innerHTML = "";
|
||||
|
||||
// Insert blank part of speech as first dropdown option.
|
||||
|
|
Loading…
Reference in New Issue