function removeTask() {
        $(document).on("click",".js-removeOldTask",function() {
            var ind = $(this).data('id');
            chrome.storage.local.get(['tasks'], function (result) {
                var removedTasks = result.tasks
                var removeIndex = removedTasks.oldTasks.findIndex(x => x.id === (ind))
                
                removedTasks.oldTasks[removeIndex].removed = true;

                chrome.storage.local.set({ 'tasks': removedTasks }, function () {
                   
                });
            })
            listTasks();
        })
    }
/**
     * remove task from list
     * @function removeTask
     * @memberof popupjs
     */
remove task from list
@function removeTask
@memberof popupjs
remove task from list @function removeTask @memberof popupjs
function removeTask() {
        $(document).on("click",".js-removeOldTask",function() {
            var ind = $(this).data('id');
            chrome.storage.local.get(['tasks'], function (result) {
                var removedTasks = result.tasks
                var removeIndex = removedTasks.oldTasks.findIndex(x => x.id === (ind))
                removedTasks.oldTasks[removeIndex].removed = true;
                chrome.storage.local.set({ 'tasks': removedTasks }, function () {
                });
            })
            listTasks();
        })
    }
function removeTask ( ) { $ ( document ) . on ( "click" , ".js-removeOldTask" , function ( ) { var ind = $ ( this ) . data ( 'id' ) ; chrome . storage . local . get ( [ 'tasks' ] , function ( result ) { var removedTasks = result . tasks var removeIndex = removedTasks . oldTasks . findIndex ( x => x . id === ( ind ) ) removedTasks . oldTasks [ removeIndex ] . removed = true ; chrome . storage . local . set ( { 'tasks' : removedTasks } , function ( ) { } ) ; } ) listTasks ( ) ; } ) }
remove task from list
 @function removeTask
 @memberof popupjs
remove task from list @function removeTask @memberof popupjs