documentcloud/backbone — Issue #1062: Missing useful things from SenchaTouch2
Author: mgcrea
Created: 2012-03-02 09:17:27+00:00
State: open

Having worked on both Backbone & SenchaTouch 2.0 for a while, i would love to get a few things inside Backbone :

* A powerful ClassManager :

http://docs.sencha.com/touch/2-0/#!/api/Ext-method-define

SenchaTouch gets clean and easy class definition (via a Ext.define() function), easy overriding, mixins (like normalized multiple inheritance), for instance, you can just call this.callParent() in Sencha while you have to do ugly things like : __super__.initialize.call(this); in backbone.

SenchaTouch classes also gets nice statics (http://docs.sencha.com/touch/2-0/#!/api/Ext.Base-static-method-addStatics) that are really useful.

* A base Application object

http://docs.sencha.com/touch/2-0/#!/api/Ext.app.Application

Thant handles initialization of Stores (Collections) & Controllers. Having a global object to query classes & instanciated objects would be great : App.getStore("ContactList"); App.getModelClass("Contact").

Do you intend to implement theses things?