Skip to content

Commit 48d225a

Browse files
committed
fix: js patch functions that are executed indefinitely
the argument passed to the patch function is meant to be ++callCount so that the value actually increments. fixes #262
1 parent f894371 commit 48d225a

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

nested_admin/static/nested_admin/dist/nested_admin.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nested_admin/static/nested_admin/dist/nested_admin.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nested_admin/static/nested_admin/dist/nested_admin.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nested_admin/static/nested_admin/dist/nested_admin.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nested_admin/static/nested_admin/src/nested-admin/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ djangoFuncs.forEach((funcName) => {
348348
return;
349349
}
350350
if (typeof $.fn[funcName] === "undefined") {
351-
return setTimeout(() => patchDjangoFunction(callCount++), 12);
351+
return setTimeout(() => patchDjangoFunction(++callCount), 12);
352352
}
353353
$.fn[funcName] = (function (oldFn) {
354354
return function django_fn_patch() {
@@ -388,7 +388,7 @@ grpFuncs.forEach((funcName) => {
388388
typeof window.grp === "undefined" ||
389389
typeof window.grp.jQuery.fn[funcName] === "undefined"
390390
) {
391-
return setTimeout(() => patchGrpFunction(callCount++), 12);
391+
return setTimeout(() => patchGrpFunction(++callCount), 12);
392392
}
393393
window.grp.jQuery.fn[funcName] = (function (oldFn) {
394394
return function grp_fn_patch() {

0 commit comments

Comments
 (0)