An environment agnostic implementation of Backbone.Model.
To create a Model, just extend from Brisket.Model the same way you would a Backbone.Model.
var MyModel = Brisket.Model.extend();
While you can extend from Brisket.Model directly to build any Models that your site needs, it may make sense to set up a BaseModel for your site that provides application-specific features to all of your application's Models.
var BaseModel = Brisket.Model.extend({
someFeature: function() {
return this.id;
}
});
var AppFoo = BaseModel.extend();
var appFoo = new AppFoo({ id: "example" });
appFoo.someFeature(); // example