_bindItemEditDone (handler) {
		var self = this;
		$delegate(self.$todoList, 'li .edit', 'blur', function () {
			if (!this.dataset.iscanceled) {
				handler({
					id: self._itemId(this),
					title: this.value
				});
			}
		});
	
		$delegate(self.$todoList, 'li .edit', 'keypress', function (event) {
			if (event.keyCode === self.ENTER_KEY) {
				// Remove the cursor from the input when you hit enter just like if it
				// were a real form
				this.blur();
			}
		});
	}
/**
	 * Private method that binds a handler to an edited item
	 * @param {function} handler The handler to bind to the item
	 */
Private method that binds a handler to an edited item
@param {function} handler The handler to bind to the item
Private method that binds a handler to an edited item @param { function } handler The handler to bind to the item
_bindItemEditDone (handler) {
		var self = this;
		$delegate(self.$todoList, 'li .edit', 'blur', function () {
			if (!this.dataset.iscanceled) {
				handler({
					id: self._itemId(this),
					title: this.value
				});
			}
		});
		$delegate(self.$todoList, 'li .edit', 'keypress', function (event) {
			if (event.keyCode === self.ENTER_KEY) {
				this.blur();
			}
		});
	}
_bindItemEditDone ( handler ) { var self = this ; $delegate ( self . $todoList , 'li .edit' , 'blur' , function ( ) { if ( ! this . dataset . iscanceled ) { handler ( { id : self . _itemId ( this ) , title : this . value } ) ; } } ) ; $delegate ( self . $todoList , 'li .edit' , 'keypress' , function ( event ) { if ( event . keyCode === self . ENTER_KEY ) { this . blur ( ) ; } } ) ; }
Private method that binds a handler to an edited item
 @param {function} handler The handler to bind to the item
Private method that binds a handler to an edited item @param { function } handler The handler to bind to the item
// Remove the cursor from the input when you hit enter just like if it // were a real form