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 // 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 = { const FUNCTION_TREE = {
'class': ['add', 'remove', 'toggle'] 'class': ['add', 'remove', 'toggle']
}; };
@ -255,7 +255,6 @@ document.addEventListener('DOMContentLoaded', () => {
switch(params.functionChild) { switch(params.functionChild) {
case 'add': case 'add':
element.classList.add(params.value); element.classList.add(params.value);
console.log('date')
break; break;
case 'remove': case 'remove':
element.classList.remove(params.value); element.classList.remove(params.value);