dist/tgi-store-json-file.spec.js
function stoogeDeleted(model, error) {
          if (typeof error != 'undefined') {
            callback(error);
            return;
          }
          // model parameter is what was deleted
          self.shouldBeTrue(undefined === model.get('id')); // ID removed
          self.shouldBeTrue(model.get('name') == 'Curly'); // the rest remains
          // Is it really dead?
          var curly = new self.Stooge();
          curly.set('id', self.deletedModelId);
          spec.integrationStore.getModel(curly, hesDeadJim);
        }
function stoogeDeleted(model, error) {
          if (typeof error != 'undefined') {
            callback(error);
            return;
          }
          // model parameter is what was deleted
          self.shouldBeTrue(undefined === model.get('id')); // ID removed
          self.shouldBeTrue(model.get('name') == 'Curly'); // the rest remains
          // Is it really dead?
          var curly = new self.Stooge();
          curly.set('id', self.deletedModelId);
          spec.integrationStore.getModel(curly, hesDeadJim);
        }
function stoogeDeleted ( model , error ) { if ( typeof error != 'undefined' ) { callback ( error ) ; return ; } // model parameter is what was deleted self . shouldBeTrue ( undefined === model . get ( 'id' ) ) ; // ID removed self . shouldBeTrue ( model . get ( 'name' ) == 'Curly' ) ; // the rest remains // Is it really dead? var curly = new self . Stooge ( ) ; curly . set ( 'id' , self . deletedModelId ) ; spec . integrationStore . getModel ( curly , hesDeadJim ) ; }
callback when Curly is deleted
callback when Curly is deleted