MO:blocklayered

Added an extra typecheck to fix a bug http://forge.prestashop.com/browse/PNM-1573
This commit is contained in:
Peter Schaeffer
2013-11-30 19:54:42 +01:00
parent 7cd38d4461
commit 7ea1d73d67
+4 -2
View File
@@ -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();
}