From 7ea1d73d67e588ed2dfe85c638af2e7d40522492 Mon Sep 17 00:00:00 2001 From: Peter Schaeffer Date: Sat, 30 Nov 2013 19:54:42 +0100 Subject: [PATCH] MO:blocklayered Added an extra typecheck to fix a bug http://forge.prestashop.com/browse/PNM-1573 --- modules/blocklayered/blocklayered.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); }