remove (id, callback) {
		var data = JSON.parse(localStorage[this._dbName]);
		var todos = data.todos;

		for (var i = 0; i < todos.length; i++) {
			if (todos[i].id == id) {
				todos.splice(i, 1);
				break;
			}
		}

		localStorage[this._dbName] = JSON.stringify(data);
		callback.call(this, todos);
	}
/**
	 * Will remove an item from the Store based on its ID
	 * 
	 * This function iterates through the todos and removes the element
	 * if the id matches
	 *
	 * @param {number} id The ID of the item you want to remove
	 * @param {function} callback The callback to fire after saving
	 */
Will remove an item from the Store based on its ID

This function iterates through the todos and removes the element
if the id matches

@param {number} id The ID of the item you want to remove
@param {function} callback The callback to fire after saving
Will remove an item from the Store based on its ID This function iterates through the todos and removes the element if the id matches @param { number } id The ID of the item you want to remove @param { function } callback The callback to fire after saving
remove (id, callback) {
		var data = JSON.parse(localStorage[this._dbName]);
		var todos = data.todos;
		for (var i = 0; i < todos.length; i++) {
			if (todos[i].id == id) {
				todos.splice(i, 1);
				break;
			}
		}
		localStorage[this._dbName] = JSON.stringify(data);
		callback.call(this, todos);
	}
remove ( id , callback ) { var data = JSON . parse ( localStorage [ this . _dbName ] ) ; var todos = data . todos ; for ( var i = 0 ; i < todos . length ; i ++ ) { if ( todos [ i ] . id == id ) { todos . splice ( i , 1 ) ; break ; } } localStorage [ this . _dbName ] = JSON . stringify ( data ) ; callback . call ( this , todos ) ; }
Will remove an item from the Store based on its ID
Will remove an item from the Store based on its ID