build/rekord.js
function(model, cascade, options)
  {
    var db = this;

    // If we have it in the models, remove it!
    this.removeFromModels( model );

    // If we're offline and we have a pending save - cancel the pending save.
    if ( model.$status === Model.Status.SavePending )
    {
      Rekord.debug( Rekord.Debugs.REMOVE_CANCEL_SAVE, db, model );
    }

    model.$status = Model.Status.RemovePending;

    model.$addOperation( RemoveLocal, cascade, options );
  }
function(model, cascade, options)
  {
    var db = this;

    // If we have it in the models, remove it!
    this.removeFromModels( model );

    // If we're offline and we have a pending save - cancel the pending save.
    if ( model.$status === Model.Status.SavePending )
    {
      Rekord.debug( Rekord.Debugs.REMOVE_CANCEL_SAVE, db, model );
    }

    model.$status = Model.Status.RemovePending;

    model.$addOperation( RemoveLocal, cascade, options );
  }
function ( model , cascade , options ) { var db = this ; // If we have it in the models, remove it! this . removeFromModels ( model ) ; // If we're offline and we have a pending save - cancel the pending save. if ( model . $status === Model . Status . SavePending ) { Rekord . debug ( Rekord . Debugs . REMOVE_CANCEL_SAVE , db , model ) ; } model . $status = Model . Status . RemovePending ; model . $addOperation ( RemoveLocal , cascade , options ) ; }
Remove the model
Remove the model