From d6ab5e62ce9bf3bc45fd679d8c644509ccb76b51 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Sun, 12 Jun 2016 08:20:17 -0700 Subject: [PATCH] Got the "removeChild" error to go away by doing this. --- js/ui.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/ui.js b/js/ui.js index dba16d0..4adad84 100644 --- a/js/ui.js +++ b/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.