Last active
August 29, 2015 14:12
-
-
Save code-for-coffee/f321460914e3a5f90cf4 to your computer and use it in GitHub Desktop.
Backbone Enterprise Book Ch2.2
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
/* 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