function deleteTaskRow(event) {
    if (event.target.className === 'todo__list-deleteBtn') {
        let task = (event.target.parentElement.children[1].innerText);
        /* console.log(task); */
        let taskParent = event.target.parentElement;
        taskParent.remove();
        todos.forEach(function(element, index) {
            if (element.task === task)
                todos.splice(index, 1)
        })
    }
    loadTodos2LocalStorage('feladatok', todos);
}
/* torol egy sort a feladat listabol, a tasknev alapjan */
torol egy sort a feladat listabol, a tasknev alapjan
torol egy sort a feladat listabol a tasknev alapjan
function deleteTaskRow(event) {
    if (event.target.className === 'todo__list-deleteBtn') {
        let task = (event.target.parentElement.children[1].innerText);
        let taskParent = event.target.parentElement;
        taskParent.remove();
        todos.forEach(function(element, index) {
            if (element.task === task)
                todos.splice(index, 1)
        })
    }
    loadTodos2LocalStorage('feladatok', todos);
}
function deleteTaskRow ( event ) { if ( event . target . className === 'todo__list-deleteBtn' ) { let task = ( event . target . parentElement . children [ 1 ] . innerText ) ; let taskParent = event . target . parentElement ; taskParent . remove ( ) ; todos . forEach ( function ( element , index ) { if ( element . task === task ) todos . splice ( index , 1 ) } ) } loadTodos2LocalStorage ( 'feladatok' , todos ) ; }
torol egy sort a feladat listabol, a tasknev alapjan
torol egy sort a feladat listabol a tasknev alapjan
/* console.log(task); */