Created
February 29, 2012 15:30
-
-
Save 72lions/1941652 to your computer and use it in GitHub Desktop.
FrameworkJS.extend - Extending a model
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
FrameworkJS.extend(function() { | |
// Overwritting the properties | |
this.name = 'GridModel'; | |
// Initial data | |
this._data = {title: "MyTitle", prop1: 'Property 1'}; | |
}, FrameworkJS.Model, 'models.Grid'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment