I hereby claim:
- I am 72lions on github.
- I am 72lions (https://keybase.io/72lions) on keybase.
- I have a public key whose fingerprint is DFDF 68CA 58D4 3CEA 1DEF 8797 94D4 DF3C AB45 E082
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
var alreadyInstantiatedGridController = FrameworkJS.retrieve( | |
'SomeId', | |
'controllers.Grid'); |
// Extend using the Controller class | |
FrameworkJS.extend(function() { | |
this.someFunction = function() { | |
// Some code here... | |
}; | |
}, | |
FrameworkJS.Controller, | |
'controllers.Grid'); |
var gridController = FrameworkJS.retrieve( | |
'SomeId', | |
'controllers.Grid'); |
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...'); |
var alreadyInstantiatedGridView = FrameworkJS.retrieve( | |
'SomeId', | |
'views.Grid'); |
var instanceOfGridModel = FrameworkJS.retrieve( | |
'gridModel', | |
'models.Grid'); |
var gridView = FrameworkJS.retrieve( | |
'SomeId', | |
'views.Grid'); |
FrameworkJS.extend(function() { | |
// Overwritting the properties | |
this.name = 'GridModel'; | |
// Initial data | |
this._data = {title: "MyTitle", prop1: 'Property 1'}; | |
}, FrameworkJS.Model, 'models.Grid'); |
var alreadyInstantiatedGridModel = FrameworkJS.retrieve( | |
'gridModel', | |
'models.Grid'); |