diff --git a/modules/templates/currency-static.xml b/modules/templates/currency-static.xml index ddca85c2e6..4168dc6072 100644 --- a/modules/templates/currency-static.xml +++ b/modules/templates/currency-static.xml @@ -331,7 +331,7 @@ body { var overrideItemPerPage = { itemsPerPage: 0, }; -$(target).xiboLayoutScaler({...properties, ...overrideItemPerPage}); +$(target).xiboLayoutScaler($.extend({}, properties, overrideItemPerPage)); // Get items var templateItems = $(target).find(".template-item"); @@ -610,7 +610,7 @@ body { var overrideItemPerPage = { itemsPerPage: 0, }; -$(target).xiboLayoutScaler({...properties, ...overrideItemPerPage}); +$(target).xiboLayoutScaler($.extend({}, properties, overrideItemPerPage)); // Get template items var templateItems = $(target).find(".template-item"); diff --git a/modules/templates/stock-static.xml b/modules/templates/stock-static.xml index be331485ce..189ab9149d 100644 --- a/modules/templates/stock-static.xml +++ b/modules/templates/stock-static.xml @@ -416,8 +416,7 @@ body { var overrideItemPerPage = { itemsPerPage: 0, }; - -$(target).xiboLayoutScaler({...properties, ...overrideItemPerPage}); +$(target).xiboLayoutScaler($.extend({}, properties, overrideItemPerPage)); // Get items var items = $(target).find(".template-item");