[Search] Input checks

More checks to see if the input is empty
before doing search computations.
This commit is contained in:
slhale
2015-08-11 13:52:23 -07:00
parent 7cad3ba0bc
commit 48693df51f
2 changed files with 24 additions and 17 deletions

View File

@@ -149,7 +149,7 @@ define(
}
// If the user input is empty, we want to have no search results.
if (searchTerm !== '') {
if (searchTerm !== '' && searchTerm !== undefined) {
// Process the search term
searchTerm = processSearchTerm(searchTerm);