sr-npm 1.7.82 → 1.7.83

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.82",
3
+ "version": "1.7.83",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -142,7 +142,7 @@ async function bind(_$w) {
142
142
  }
143
143
 
144
144
  function init(_$w) {
145
- const debouncedSearch = debounce(applyFilters, 400,thisObjectVar);
145
+ const debouncedSearch = debounce(()=>applyFilters(_$w), 400,thisObjectVar);
146
146
 
147
147
  _$w('#searchInput').onInput(debouncedSearch);
148
148
  _$w('#dropdownDepartment, #dropdownLocation, #dropdownJobType').onChange(()=>applyFilters(_$w));
@@ -26,6 +26,8 @@ function debounce(fn, delay = 400,thisObject) {
26
26
  let timeout;
27
27
  return function (...args) {
28
28
  clearTimeout(timeout);
29
+ console.log("thisObject is: ", thisObject);
30
+ console.log("args is: ", args);
29
31
  timeout = setTimeout(() => fn.apply(thisObject, args), delay);
30
32
  };
31
33
  }