fluence-js/src/examples/todo-list/index.js
function deleteTask() {
        console.log("Deleting task...");

        const listItem = this.parentNode;
        const ul = listItem.parentNode;

        const task = listItem.getElementsByTagName('label')[0].innerText;

        // *****
        // *** delete a task from the cluster when we press `Delete` button on the completed task
        // *****

        deleteFromFluence(task);

        ul.removeChild(listItem);
    }
function deleteTask() {
        console.log("Deleting task...");

        const listItem = this.parentNode;
        const ul = listItem.parentNode;

        const task = listItem.getElementsByTagName('label')[0].innerText;

        // *****
        // *** delete a task from the cluster when we press `Delete` button on the completed task
        // *****

        deleteFromFluence(task);

        ul.removeChild(listItem);
    }
function deleteTask ( ) { console . log ( "Deleting task..." ) ; const listItem = this . parentNode ; const ul = listItem . parentNode ; const task = listItem . getElementsByTagName ( 'label' ) [ 0 ] . innerText ; // ***** // *** delete a task from the cluster when we press `Delete` button on the completed task // ***** deleteFromFluence ( task ) ; ul . removeChild ( listItem ) ; }
delete task functions
delete task functions