examples/todomvc/js/models/store.js
function (id, callback) {
        var todos = data.todos;

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

        flush();
        callback.call(undefined, data.todos);
      }
function (id, callback) {
        var todos = data.todos;

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

        flush();
        callback.call(undefined, data.todos);
      }
function ( id , callback ) { var todos = data . todos ; for ( var i = 0 ; i < todos . length ; i ++ ) { if ( todos [ i ] . id == id ) { todos . splice ( i , 1 ) ; break ; } } flush ( ) ; callback . call ( undefined , data . todos ) ; }
Will remove an item from the Store based on its ID

@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