diff --git a/modules/blocklayered/blocklayered.js b/modules/blocklayered/blocklayered.js index 0a2301555..f3c31f290 100644 --- a/modules/blocklayered/blocklayered.js +++ b/modules/blocklayered/blocklayered.js @@ -328,8 +328,10 @@ function openCloseFilter() function stopAjaxQuery() { if (typeof(ajaxQueries) == 'undefined') ajaxQueries = new Array(); - for(i = 0; i < ajaxQueries.length; i++) - ajaxQueries[i].abort(); + for(i = 0; i < ajaxQueries.length; i++) { + if (typeof ajaxQueries[i] != 'undefined') + ajaxQueries[i].abort(); + } ajaxQueries = new Array(); }