Skip to content

Instantly share code, notes, and snippets.

Baseline.lib.BaseController = Ext.extend(Ext.util.Observable, {
view: null,
constructor: function(dispatch_object) {
Ext.apply(this, dispatch_object);
this.view = new this.view(this);
Baseline.lib.BaseController.superclass.constructor.call(this, dispatch_object);
this.doAction(dispatch_object);
},
Baseline.lib.CrudController = Ext.extend(Baseline.lib.BaseController, {
model: '',
pluralize: '',
singularize: '',
constructor: function(dispatch_object, config) {
Ext.apply(this, config || {});
Baseline.lib.CrudController.superclass.constructor.call(this, dispatch_object, config);
this.addEvents(
Baseline.lib.CarsView = Ext.extend(Baseline.lib.WindowView, {
aeId : 'car',
initComponent: function() {
this.grid = ActiveExt.get(this.aeId).grid;
var store_name = new Ext.data.JsonStore({
url: '/manufacturers',
// reader configs
Baseline.lib.BaseController = Ext.extend(Ext.util.Observable, {
view: null,
constructor: function(dispatch_object) {
Ext.apply(this, dispatch_object);
Baseline.lib.BaseController.superclass.constructor.call(this, dispatch_object);
this.doAction(dispatch_object);
},
getView: function() {