[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Sat, 5 Oct 2024 17:16:38 -0400 (EDT) |
branch: master
commit 8e6b3df66e111fd4af9c438f4236ae1464143ecb
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Oct 5 22:13:15 2024 +0100
* js/info.js (updater): add a comment
---
ChangeLog | 4 ++++
js/info.js | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index a7227949d5..5672278bf4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2024-10-05 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * js/info.js (updater): add a comment
+
2024-10-05 Gavin Smith <gavinsmith0123@gmail.com>
Rename info.js variable
diff --git a/js/info.js b/js/info.js
index 6eca4af02a..646eb7ef4d 100644
--- a/js/info.js
+++ b/js/info.js
@@ -347,11 +347,15 @@ updater (state, action)
{
/* When CURRENT is in index but doesn't have the requested
direction, ask its corresponding 'pageid'. */
+
+ /* This checks if CURRENT is a value in state.TI_index for
+ some key. */
var is_index_ref =
Object.keys (state.TI_index)
.reduce (function (acc, val) {
return acc || state.TI_index[val] === current;
}, false);
+
if (is_index_ref)
{
ids = state.loaded_nodes[link.pageid];