_updateCount(){
        this.model.getCount(todos => {
            const completed = todos.completed;
            const visible = completed > 0;
            const checked = completed === todos.total;

            this.view.render('updateElementCount', todos.active);
            this.view.render('clearCompletedButton', {completed, visible});

            this.view.render('toggleAll', {checked});
            this.view.render('contentBlockVisibility', {visible: todos.total > 0});
        });
    }
/**
     * Updates the pieces of the page which change depending on the remaining
     * number of todos.
     */
Updates the pieces of the page which change depending on the remaining
number of todos.
Updates the pieces of the page which change depending on the remaining number of todos .
_updateCount(){
        this.model.getCount(todos => {
            const completed = todos.completed;
            const visible = completed > 0;
            const checked = completed === todos.total;
            this.view.render('updateElementCount', todos.active);
            this.view.render('clearCompletedButton', {completed, visible});
            this.view.render('toggleAll', {checked});
            this.view.render('contentBlockVisibility', {visible: todos.total > 0});
        });
    }
_updateCount ( ) { this . model . getCount ( todos => { const completed = todos . completed ; const visible = completed > 0 ; const checked = completed === todos . total ; this . view . render ( 'updateElementCount' , todos . active ) ; this . view . render ( 'clearCompletedButton' , { completed , visible } ) ; this . view . render ( 'toggleAll' , { checked } ) ; this . view . render ( 'contentBlockVisibility' , { visible : todos . total > 0 } ) ; } ) ; }
Updates the pieces of the page which change depending on the remaining
 number of todos.
Updates the pieces of the page which change depending on the remaining number of todos .