toggleComplete (id, completed, silent) {
			var self = this;
			self.model.update(id, { completed: completed }, function () {
				self.view.render('elementComplete', {
					id: id,
					completed: completed
				});
			});
	
			if (!silent) {
				self._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 {boolean} 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 {boolean} 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 { boolean } 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) {
			var self = this;
			self.model.update(id, { completed: completed }, function () {
				self.view.render('elementComplete', {
					id: id,
					completed: completed
				});
			});
			if (!silent) {
				self._filter();
			}
		}
toggleComplete ( id , completed , silent ) { var self = this ; self . model . update ( id , { completed : completed } , function ( ) { self . view . render ( 'elementComplete' , { id : id , completed : completed } ) ; } ) ; if ( ! silent ) { self . _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 .