@pushword/js-helper 0.0.79 → 0.0.82
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/package.json +1 -1
- package/src/helpers.js +2 -2
package/package.json
CHANGED
package/src/helpers.js
CHANGED
|
@@ -202,9 +202,9 @@ export function addClassForNormalUser(attribute = 'data-acinb') {
|
|
|
202
202
|
}
|
|
203
203
|
if (startScrolling === 4) {
|
|
204
204
|
[].forEach.call(document.querySelectorAll('[' + attribute + ']'), function (element) {
|
|
205
|
-
var classToAdd = element.getAttribute(attribute);
|
|
205
|
+
var classToAdd = element.getAttribute(attribute).split(' ');
|
|
206
206
|
element.removeAttribute(attribute);
|
|
207
|
-
element.classList.add(
|
|
207
|
+
element.classList.add(...classToAdd);
|
|
208
208
|
if ((' ' + classToAdd + ' ').contains(' block ')) {
|
|
209
209
|
element.classList.remove('hidden');
|
|
210
210
|
}
|