Created
October 31, 2011 01:10
-
-
Save nhunzaker/1326678 to your computer and use it in GitHub Desktop.
Article 1 - A Simple Tweet Model
This file contains hidden or 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
// Creates a "Tweet" model based upon the Backbone.Model object | |
var Tweet = Backbone.Model; | |
// Instantiates the tweet model: | |
var myTweet = new Tweet({ | |
from_user : "natehunzaker", | |
text : "Grow you a #backbone for great good!" | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment