1
0
Fork 0
mirror of https://github.com/Alamantus/Lexiconga.git synced 2025-04-11 06:00:31 +02:00

Got the "removeChild" error to go away by doing this.

This commit is contained in:
Robbie Antenesse 2016-06-12 08:20:17 -07:00
parent 9deb9087e6
commit d6ab5e62ce

View file

@ -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.