Skip to content

Instantly share code, notes, and snippets.

@72lions
Created February 29, 2012 15:30
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 72lions/1941652 to your computer and use it in GitHub Desktop.
Save 72lions/1941652 to your computer and use it in GitHub Desktop.
FrameworkJS.extend - Extending a model
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