[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:08:58 -07:00
parent a48a0820ad
commit 11a45e4db0
3 changed files with 27 additions and 19 deletions

View File

@ -148,7 +148,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);