Created
April 27, 2017 15:10
-
-
Save CheezItMan/5fea6abc8ceeda31e14a691ca0938159 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
import Backbone from 'backbone'; | |
var Task = Backbone.Model.extend({ | |
defaults: { | |
title: '', | |
completed: false | |
}, | |
logStatus: function() { | |
console.log("Title: " + this.get("title")); | |
console.log("Completed: " + this.get("completed")); | |
}, | |
toggleComplete: function() { | |
this.set("complete", !this.get("complete")); | |
} | |
}); | |
export default Task; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment