Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View 72lions's full-sized avatar
👋

Thodoris Tsiridis 72lions

👋
View GitHub Profile
@72lions
72lions / FrameworkJS.extend.extending.a.view.js
Created February 29, 2012 14:52
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...');
@72lions
72lions / frameworkjs.retrieve.instantiated.controller.example.js
Created January 31, 2012 12:13
FrameworkJS.retrieve - Retrieve an already instantiated controller
var alreadyInstantiatedGridController = FrameworkJS.retrieve(
'SomeId',
'controllers.Grid');
@72lions
72lions / frameworkjs.retrieve.instantiate.controller.example.js
Created January 31, 2012 12:10
FrameworkJS.retrieve - Instantiate a new controller
var gridController = FrameworkJS.retrieve(
'SomeId',
'controllers.Grid');
@72lions
72lions / FrameworkJS.extend.controller.example.js
Created January 31, 2012 12:05
FrameworkJS.extend - Extending a controller
// Extend using the Controller class
FrameworkJS.extend(function() {
this.someFunction = function() {
// Some code here...
};
},
FrameworkJS.Controller,
'controllers.Grid');