_updateCount () {
			var self = this;
			self.model.getCount(function (todos) {
				self.view.render('updateElementCount', todos.active);
				self.view.render('clearCompletedButton', {
					completed: todos.completed,
					visible: todos.completed > 0
				});
	
				self.view.render('toggleAll', { checked: todos.completed === todos.total });
				self.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 () {
			var self = this;
			self.model.getCount(function (todos) {
				self.view.render('updateElementCount', todos.active);
				self.view.render('clearCompletedButton', {
					completed: todos.completed,
					visible: todos.completed > 0
				});
				self.view.render('toggleAll', { checked: todos.completed === todos.total });
				self.view.render('contentBlockVisibility', { visible: todos.total > 0 });
			});
		}
_updateCount ( ) { var self = this ; self . model . getCount ( function ( todos ) { self . view . render ( 'updateElementCount' , todos . active ) ; self . view . render ( 'clearCompletedButton' , { completed : todos . completed , visible : todos . completed > 0 } ) ; self . view . render ( 'toggleAll' , { checked : todos . completed === todos . total } ) ; self . 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 .