diff --git a/themes/bootstrap3/js/common.js b/themes/bootstrap3/js/common.js index 2963b97669ea3cc9575169e2b32ac5751b9a80e4..36310e3dd7b563979aeef2083a984d0090398939 100644 --- a/themes/bootstrap3/js/common.js +++ b/themes/bootstrap3/js/common.js @@ -286,8 +286,12 @@ function setupAutocomplete() { // Update autocomplete on type change $('#searchForm_type').change(function searchTypeChange() { for (var i in cacheObj) { - for (var j in cacheObj[i]) { - delete cacheObj[i][j]; + if (cacheObj.hasOwnProperty(i)) { + for (var j in cacheObj[i]) { + if (cacheObj[i].hasOwnProperty(j)) { + delete cacheObj[i][j]; + } + } } } });