summaryrefslogtreecommitdiff
path: root/src-migrate
diff options
context:
space:
mode:
Diffstat (limited to 'src-migrate')
-rw-r--r--src-migrate/utils/checkBoxState.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/src-migrate/utils/checkBoxState.js b/src-migrate/utils/checkBoxState.js
index 2b527f36..8f7236c3 100644
--- a/src-migrate/utils/checkBoxState.js
+++ b/src-migrate/utils/checkBoxState.js
@@ -53,15 +53,15 @@ const checkboxUpdateState = {
// Get IDs of all checkboxes currently updating (for debugging)
// getUpdatingCheckboxIds: () => [...updatingCheckboxIds],
- // // Add a listener function to be called when update state changes
- // addListener: (callback) => {
- // if (typeof callback === 'function') {
- // listeners.push(callback);
-
- // // Immediately call with current state
- // callback(updateCount > 0);
- // }
- // },
+ // Add a listener function to be called when update state changes
+ addListener: (callback) => {
+ if (typeof callback === 'function') {
+ listeners.push(callback);
+
+ // Immediately call with current state
+ callback(updateCount > 0);
+ }
+ },
// Remove a listener
removeListener: (callback) => {