Remove old code

This commit is contained in:
Andros Fenollosa 2020-07-22 20:27:10 +02:00 committed by GitHub
parent ea2e148395
commit e8cbe46659
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ document.addEventListener('DOMContentLoaded', () => {
//===
// VARIABLES
//===
const EVENTS = ['is-click', 'is-scroll-up', 'is-scroll-down', 'is-hover', 'is-view', 'is-visible', 'is-not-visible'];
const EVENTS = ['is-click', 'is-scroll-up', 'is-scroll-down', 'is-hover', 'is-visible', 'is-not-visible'];
const FUNCTION_TREE = {
'class': ['add', 'remove', 'toggle']
};
@ -255,7 +255,6 @@ document.addEventListener('DOMContentLoaded', () => {
switch(params.functionChild) {
case 'add':
element.classList.add(params.value);
console.log('date')
break;
case 'remove':
element.classList.remove(params.value);