Created
May 21, 2012 08:17
-
-
Save gouthamvel/2761135 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment