File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
javascript/apis/fetching-data/can-store-xhr Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,20 +83,20 @@ function initialize(products) {
83
83
let lowerCaseType = category . value . toLowerCase ( ) ;
84
84
for ( let i = 0 ; i < products . length ; i ++ ) {
85
85
// If a product's type property is the same as the chosen category, we want to
86
- // dispay it, so we push it onto the categoryGroup array
86
+ // display it, so we push it onto the categoryGroup array
87
87
if ( products [ i ] . type === lowerCaseType ) {
88
88
categoryGroup . push ( products [ i ] ) ;
89
89
}
90
90
}
91
91
92
- // Run selectProducts() after the filtering has bene done
92
+ // Run selectProducts() after the filtering has been done
93
93
selectProducts ( ) ;
94
94
}
95
95
}
96
96
}
97
97
98
98
// selectProducts() Takes the group of products selected by selectCategory(), and further
99
- // filters them by the tnered search term (if one has bene entered)
99
+ // filters them by the tiered search term (if one has been entered)
100
100
function selectProducts ( ) {
101
101
// If no search term has been entered, just make the finalGroup array equal to the categoryGroup
102
102
// array — we don't want to filter the products further — then run updateDisplay().
You can’t perform that action at this time.
0 commit comments