Fix init of matches (bug observable in match demo)
Change-Id: If1db8e216255681bdd86175ceeef4f0364abb8fe
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];