Skip to content

Instantly share code, notes, and snippets.

@72lions
Created February 29, 2012 14:52
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/1941323 to your computer and use it in GitHub Desktop.
Save 72lions/1941323 to your computer and use it in GitHub Desktop.
FrameworkJS.extend - Extending a view
FrameworkJS.extend(function () {
// Overwritting the properties
this.name = 'CustomViewName';
this.domElement = '.test';
/**
* Overwrite the draw function
*/
this.draw = function () {
//console.log('Overwritting the draw function...');
};
}, FrameworkJS.View, 'views.Grid');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment