@brandocms/jupiter 3.42.5 → 3.42.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -105,6 +105,7 @@ export default class MobileMenu {
|
|
|
105
105
|
this.app = app
|
|
106
106
|
this.opts = _defaultsDeep(opts, DEFAULT_OPTIONS)
|
|
107
107
|
|
|
108
|
+
this.open = false
|
|
108
109
|
this.header = document.querySelector('header')
|
|
109
110
|
this.bg = this.header.querySelector('.mobile-bg')
|
|
110
111
|
this.logo = this.header.querySelector('figure.brand')
|
|
@@ -140,11 +141,13 @@ export default class MobileMenu {
|
|
|
140
141
|
toggleMenuClosed () {
|
|
141
142
|
// CLOSING MENU
|
|
142
143
|
this.opts.closeTween(this)
|
|
144
|
+
this.open = false
|
|
143
145
|
}
|
|
144
146
|
|
|
145
147
|
toggleMenuOpen () {
|
|
146
148
|
// OPENING MENU
|
|
147
149
|
this.opts.openTween(this)
|
|
150
|
+
this.open = true
|
|
148
151
|
}
|
|
149
152
|
|
|
150
153
|
_emitMobileMenuOpenEvent () {
|
|
@@ -5,7 +5,7 @@ export default class Typography {
|
|
|
5
5
|
// Set some settings, by merging defaults and passed settings
|
|
6
6
|
self.settings = {
|
|
7
7
|
minWords: 4,
|
|
8
|
-
selector: '
|
|
8
|
+
selector: '[data-typo]',
|
|
9
9
|
ignoreClass: 'no-typo-fix',
|
|
10
10
|
ignoreExistingSpaceChars: false,
|
|
11
11
|
...settings
|
|
@@ -29,11 +29,6 @@ export default class Typography {
|
|
|
29
29
|
const self = this
|
|
30
30
|
|
|
31
31
|
self.elems.map(elem => {
|
|
32
|
-
// Bail out if the ignore class is present on this element
|
|
33
|
-
if (elem.classList.contains(self.settings.ignoreClass)) {
|
|
34
|
-
return false
|
|
35
|
-
}
|
|
36
|
-
|
|
37
32
|
// Run the ignore checker nd bail if required
|
|
38
33
|
if (self.shouldElementBeIgnored(elem)) {
|
|
39
34
|
return false
|