Created
February 29, 2012 14:52
-
-
Save 72lions/1941323 to your computer and use it in GitHub Desktop.
FrameworkJS.extend - Extending a view
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 = '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