Skip to content

Commit 089da18

Browse files
committed
fix computation of currentNumberOfProducts
1 parent 6eb88c4 commit 089da18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unbxdSearch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//uglifyjs unbxdSearch.js -o unbxdSearch.min.js && gzip -c unbxdSearch.min.js > unbxdSearch.min.js.gz && aws s3 cp unbxdSearch.min.js.gz s3://unbxd/unbxdSearch.js --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --content-encoding gzip --cache-control max-age=3600
22
var unbxdSearchInit = function(jQuery, Handlebars){
33
window.Unbxd = window.Unbxd || {};
4-
Unbxd.jsSdkVersion = "1.0.5";
4+
Unbxd.jsSdkVersion = "1.0.6";
55

66
// Production steps of ECMA-262, Edition 5, 15.4.4.14
77
// Reference: http://es5.github.io/#x15.4.4.14
@@ -1431,7 +1431,7 @@ var unbxdSearchInit = function(jQuery, Handlebars){
14311431

14321432
this.totalNumberOfProducts = obj.response.numberOfProducts;
14331433

1434-
this.currentNumberOfProducts += obj.response.products.length;
1434+
this.currentNumberOfProducts = obj.response.start + obj.response.products.length;
14351435

14361436
if(typeof this.options.setPagination == "function"){
14371437
this.options.setPagination.call(this,this.totalNumberOfProducts,this.getPageSize(),this.getPage());

0 commit comments

Comments
 (0)