Skip to content

Instantly share code, notes, and snippets.

@code-for-coffee
Last active August 29, 2015 14:12
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 code-for-coffee/f321460914e3a5f90cf4 to your computer and use it in GitHub Desktop.
Save code-for-coffee/f321460914e3a5f90cf4 to your computer and use it in GitHub Desktop.
Backbone Enterprise Book Ch2.2
/* use namespace for storage */
App.Models.BaseModel = Backbone.Model.extend({
defaults: {
id: 1,
name: "BaseModel"
}
});
App.Views.BaseView = Backbone.View.extend({
el: undefined,
model: undefined
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment