@ecl/vanilla-component-inpage-navigation
Advanced tools
Comparing version 3.11.0 to 3.11.1
@@ -294,2 +294,7 @@ import Stickyfill from 'stickyfilljs'; | ||
init() { | ||
if (!ECL) { | ||
throw new TypeError('Called init but ECL is not present'); | ||
} | ||
ECL.components = ECL.components || new Map(); | ||
const toggleElement = queryOne(this.toggleSelector, this.element); | ||
@@ -314,2 +319,3 @@ const navLinks = queryAll(this.linksSelector, this.element); | ||
this.element.setAttribute('data-ecl-auto-initialized', 'true'); | ||
ECL.components.set(this.element, this); | ||
} | ||
@@ -379,2 +385,3 @@ | ||
this.element.removeAttribute('data-ecl-auto-initialized'); | ||
ECL.components.delete(this.element); | ||
} | ||
@@ -381,0 +388,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"license": "EUPL-1.2", | ||
"version": "3.11.0", | ||
"version": "3.11.1", | ||
"description": "ECL In-page Navigation", | ||
@@ -13,4 +13,4 @@ "main": "inpage-navigation.js", | ||
"dependencies": { | ||
"@ecl/theme-dev": "3.11.0", | ||
"@ecl/vanilla-layout-grid": "3.11.0", | ||
"@ecl/theme-dev": "3.11.1", | ||
"@ecl/vanilla-layout-grid": "3.11.1", | ||
"gumshoejs": "5.1.2", | ||
@@ -35,3 +35,3 @@ "stickyfilljs": "2.1.0" | ||
], | ||
"gitHead": "70ed1ce0d8024e5a6fbadca76e856171b0d08825" | ||
"gitHead": "975c068b3136835cec9b13941efd58cfa3faafa6" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36147
347
+ Added@ecl/theme-dev@3.11.1(transitive)
+ Added@ecl/vanilla-layout-grid@3.11.1(transitive)
- Removed@ecl/theme-dev@3.11.0(transitive)
- Removed@ecl/vanilla-layout-grid@3.11.0(transitive)
Updated@ecl/theme-dev@3.11.1