Fix init of matches (bug observable in match demo)
Change-Id: If1db8e216255681bdd86175ceeef4f0364abb8fe
diff --git a/Changes b/Changes
index 8650f07..fdee0ba 100755
--- a/Changes
+++ b/Changes
@@ -1,4 +1,4 @@
-0.43 2021-07-28
+0.43 2021-08-16
- New menu class that has an entry at the very end,
similar to the input text prefix,
that is always available. (lerepp)
@@ -19,6 +19,7 @@
to prepend to.
- New menu class that has a container for further
entries at the very end that is always available. (lerepp)
+ - Fix init of matches.
0.42 2021-06-18
- Added GitHub based CI for perl.
diff --git a/dev/js/src/init.js b/dev/js/src/init.js
index cc8abea..54ffd98 100644
--- a/dev/js/src/init.js
+++ b/dev/js/src/init.js
@@ -170,7 +170,7 @@
// Define class for active elements
if (e.classList.contains('active')) {
- if (this._match === undefined) {
+ if (e._match === undefined) {
// lazyLoad
matchClass.create(e).init();
};
@@ -204,7 +204,7 @@
};
});
};
- }, this);
+ });
// Add focus listener to aside
var aside = d.getElementsByTagName('aside')[0];