Skip to content

Commit

Permalink
replace _.debounce with KISS.utils.debounce
Browse files Browse the repository at this point in the history
  • Loading branch information
aheinze committed Oct 7, 2024
1 parent 65e6cc0 commit 8f2232d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/Content/views/collection/item.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@
context: {
model: this.model.name
},
resolver: _.debounce((data, update) => {
resolver: KISS.utils.debounce((data, update) => {

this.$request(`/content/populate`, {data: data.data, locale: data.locale}).then(resolvedData => {
update(Object.assign(data, {data: resolvedData}));
Expand Down
2 changes: 1 addition & 1 deletion modules/Content/views/singleton/item.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
context: {
model: this.model.name
},
resolver: _.debounce((data, update) => {
resolver: KISS.utils.debounce((data, update) => {

this.$request(`/content/populate`, {data: data.data, locale: data.locale}).then(resolvedData => {
update(Object.assign(data, {data: resolvedData}));
Expand Down
2 changes: 1 addition & 1 deletion modules/Content/views/tree/item.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
context: {
model: this.model.name
},
resolver: _.debounce((data, update) => {
resolver: KISS.utils.debounce((data, update) => {

this.$request(`/content/populate`, {data: data.data, locale: data.locale}).then(resolvedData => {
update(Object.assign(data, {data: resolvedData}));
Expand Down

0 comments on commit 8f2232d

Please sign in to comment.