Skip to content

Instantly share code, notes, and snippets.

@whistler whistler/this.js
Last active Aug 29, 2015

Embed
What would you like to do?
this in if
var AnimalView = Backbone.View.extend({
..
save: function() {
var that = this;
if(!this.isSaved) {
that.model.save()
} else {
that.alreadySaved();
}
},
..
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.