examples/backbone.localStorage.js
function(model) {
    if (model.isNew())
      return false
    this.localStorage().removeItem(this.name+"-"+model.id);
    this.records = _.reject(this.records, function(id){
      return id === model.id.toString();
    });
    this.save();
    return model;
  }
function(model) {
    if (model.isNew())
      return false
    this.localStorage().removeItem(this.name+"-"+model.id);
    this.records = _.reject(this.records, function(id){
      return id === model.id.toString();
    });
    this.save();
    return model;
  }
function ( model ) { if ( model . isNew ( ) ) return false this . localStorage ( ) . removeItem ( this . name + "-" + model . id ) ; this . records = _ . reject ( this . records , function ( id ) { return id === model . id . toString ( ) ; } ) ; this . save ( ) ; return model ; }
Delete a model from `this.data`, returning it.
Delete a model from this . data returning it .