sr-npm 1.7.87 → 1.7.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pages/careersPage.js +1 -1
- package/pages/homePage.js +4 -3
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -199,7 +199,7 @@ async function applyFilters(_$w) {
|
|
|
199
199
|
await _$w('#jobsDataset').setFilter(filter);
|
|
200
200
|
await _$w('#jobsDataset').refresh();
|
|
201
201
|
|
|
202
|
-
const count = await updateCount();
|
|
202
|
+
const count = await updateCount(_$w);
|
|
203
203
|
|
|
204
204
|
count ? _$w('#resultsMultiState').changeState('results') : _$w('#resultsMultiState').changeState('noResults');
|
|
205
205
|
|
package/pages/homePage.js
CHANGED
|
@@ -4,8 +4,9 @@ const {
|
|
|
4
4
|
} = require('../public/filterUtils');
|
|
5
5
|
const { handleOnLocationClick } = require('../public/mapUtils');
|
|
6
6
|
const { location } = require('@wix/site-location');
|
|
7
|
-
|
|
8
|
-
async function homePageOnReady(_$w) {
|
|
7
|
+
let thisObjectVar;
|
|
8
|
+
async function homePageOnReady(_$w,thisObject) {
|
|
9
|
+
thisObjectVar=thisObject;
|
|
9
10
|
await bind(_$w);
|
|
10
11
|
await init(_$w);
|
|
11
12
|
}
|
|
@@ -38,7 +39,7 @@ async function homePageOnReady(_$w) {
|
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
function init(_$w) {
|
|
41
|
-
const debouncedInput = debounce(handleSearchInput, 400);
|
|
42
|
+
const debouncedInput = debounce(()=>handleSearchInput(_$w), 400,thisObjectVar);
|
|
42
43
|
|
|
43
44
|
_$w('#searchInput').onInput(debouncedInput);
|
|
44
45
|
_$w('#searchInput').maxLength = 40;
|