examples/todos/js/backbonefire.js
function(snap) {
          var model = Backbone.Firebase._checkId(snap);

          if (this._suppressEvent === true) {
            this._suppressEvent = false;
            Backbone.Collection.prototype.remove.apply(
              this, [model], {silent: true}
            );
          } else {
            // trigger sync because data has been received from the server
            this.trigger('sync', this);
            Backbone.Collection.prototype.remove.apply(this, [model]);
          }
        }
function(snap) {
          var model = Backbone.Firebase._checkId(snap);

          if (this._suppressEvent === true) {
            this._suppressEvent = false;
            Backbone.Collection.prototype.remove.apply(
              this, [model], {silent: true}
            );
          } else {
            // trigger sync because data has been received from the server
            this.trigger('sync', this);
            Backbone.Collection.prototype.remove.apply(this, [model]);
          }
        }
function ( snap ) { var model = Backbone . Firebase . _checkId ( snap ) ; if ( this . _suppressEvent === true ) { this . _suppressEvent = false ; Backbone . Collection . prototype . remove . apply ( this , [ model ] , { silent : true } ) ; } else { // trigger sync because data has been received from the server this . trigger ( 'sync' , this ) ; Backbone . Collection . prototype . remove . apply ( this , [ model ] ) ; } }
remove an item from the collection when removed remotely provides the ability to remove siliently
remove an item from the collection when removed remotely provides the ability to remove siliently