gouthamvel
5/21/2012 - 8:17 AM

checkout_item.js

  destroy: function(opt){
    if(!this.id){
      console.log('differing')
      var fun = _.bind(Backbone.Model.prototype.destroy.call, this)
      _.delay(fun,1000,[this,opt]);
    }
    else
      Backbone.Model.prototype.destroy.call(this,opt);
  },
// console logs in browser
// differing
// underscore.js:517Uncaught TypeError: object is not a function
// _.delay