Skip to content

Commit

Permalink
Fix for older JS rendering engines (#2612)
Browse files Browse the repository at this point in the history
  • Loading branch information
maurofmferrao authored Jul 5, 2024
1 parent 136879f commit e8e6008
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/templates/currency-static.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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");
Expand Down
3 changes: 1 addition & 2 deletions modules/templates/stock-static.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit e8e6008

Please sign in to comment.