editItemSave (id, title) {
			var self = this;
			title = title.trim();
	
			if (title.length !== 0) {
				self.model.update(id, { title: title }, function () {
					self.view.render('editItemDone', { id: id, title: title });
				});
			} else {
				self.removeItem(id);
			}
		}
/**
		 * Finishes the item editing mode successfully.
		 * If the title is empty, the todo is removed.
		 * 
		 * @param {number} id The id of the todo we want to save after editing
		 * @param {string} title The new title of the updated todo
		 */
Finishes the item editing mode successfully.
If the title is empty, the todo is removed.

@param {number} id The id of the todo we want to save after editing
@param {string} title The new title of the updated todo
Finishes the item editing mode successfully . If the title is empty the todo is removed . @param { number } id The id of the todo we want to save after editing @param { string } title The new title of the updated todo
editItemSave (id, title) {
			var self = this;
			title = title.trim();
			if (title.length !== 0) {
				self.model.update(id, { title: title }, function () {
					self.view.render('editItemDone', { id: id, title: title });
				});
			} else {
				self.removeItem(id);
			}
		}
editItemSave ( id , title ) { var self = this ; title = title . trim ( ) ; if ( title . length !== 0 ) { self . model . update ( id , { title : title } , function ( ) { self . view . render ( 'editItemDone' , { id : id , title : title } ) ; } ) ; } else { self . removeItem ( id ) ; } }
Finishes the item editing mode successfully.
Finishes the item editing mode successfully .