toggleComplete(id, completed, silent){
        this.model.update(id, {completed}, () => {
            this.view.render('elementComplete', {id, completed});
        });

        if (!silent) {
            this._filter();
        }
    }
/**
     * Give it an ID of a model and a checkbox and it will update the item
     * in storage based on the checkbox's state.
     *
     * @param {number} id The ID of the element to complete or uncomplete
     * @param {object} checkbox The checkbox to check the state of complete
     *                          or not
     * @param {boolean|undefined} silent Prevent re-filtering the todo items
     */
Give it an ID of a model and a checkbox and it will update the item
in storage based on the checkbox's state.

@param {number} id The ID of the element to complete or uncomplete
@param {object} checkbox The checkbox to check the state of complete
or not
@param {boolean|undefined} silent Prevent re-filtering the todo items
Give it an ID of a model and a checkbox and it will update the item in storage based on the checkbox ' s state . @param { number } id The ID of the element to complete or uncomplete @param { object } checkbox The checkbox to check the state of complete or not @param { boolean|undefined } silent Prevent re - filtering the todo items
toggleComplete(id, completed, silent){
        this.model.update(id, {completed}, () => {
            this.view.render('elementComplete', {id, completed});
        });
        if (!silent) {
            this._filter();
        }
    }
toggleComplete ( id , completed , silent ) { this . model . update ( id , { completed } , ( ) => { this . view . render ( 'elementComplete' , { id , completed } ) ; } ) ; if ( ! silent ) { this . _filter ( ) ; } }
Give it an ID of a model and a checkbox and it will update the item
 in storage based on the checkbox's state.
Give it an ID of a model and a checkbox and it will update the item in storage based on the checkbox ' s state .