PDA

View Full Version : Controller - application is a property, not a config



LesJ
1 May 2017, 12:07 PM
The controller's application (https://docs.sencha.com/extjs/6.2.1/classic/Ext.app.Controller.html#method-setApplication)property should not be documented as a bindable config. This is a readonly property, so a setter should not be documented.

Read also this thread (https://www.sencha.com/forum/showthread.php?316379).

LesJ
3 May 2017, 5:38 AM
This looks to me like a design error in the API.

I could agree with nohuhu that application should not be accessible in the controller, but since it's accessible, it should be accessible as a property not a config.

Another option is to deprecate this config altogether.