Skip to content

Instantly share code, notes, and snippets.

@whistler
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whistler/ec0846a012c40ac1a09c to your computer and use it in GitHub Desktop.
Save whistler/ec0846a012c40ac1a09c to your computer and use it in GitHub Desktop.
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