File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
//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
2
2
var unbxdSearchInit = function ( jQuery , Handlebars ) {
3
3
window . Unbxd = window . Unbxd || { } ;
4
- Unbxd . jsSdkVersion = "1.0.3 " ;
4
+ Unbxd . jsSdkVersion = "1.0.4 " ;
5
5
6
6
// Production steps of ECMA-262, Edition 5, 15.4.4.14
7
7
// Reference: http://es5.github.io/#x15.4.4.14
@@ -553,7 +553,8 @@ var unbxdSearchInit = function(jQuery, Handlebars){
553
553
554
554
this . params = finalParams ;
555
555
556
- this . params . categoryId = this . options . type == "browse" && typeof this . options . getCategoryId == "function" ? this . options . getCategoryId ( ) : "" ;
556
+ this . params . categoryId = this . options . type == "browse" && typeof this . options . getCategoryId == "function" ?
557
+ this . options . getCategoryId ( ) : ( this . params . categoryId ? this . params . categoryId : "" ) ;
557
558
558
559
this . setPage ( "page" in finalParams . extra ? finalParams . extra . page : 1 )
559
560
. setPageSize ( "rows" in finalParams . extra ? finalParams . extra . rows : this . options . pageSize ) ;
You can’t perform that action at this time.
0 commit comments