Thank you for reporting this bug. We will make it our priority to review this report.
Duplicate controller created if using shortform and full name in getController method
Duplicate controller created if using shortform and full name in getController method
Example
http://ift.tt/1qC0ieCDescription:
Write an application that has a controller (that extends from Ext.app.Controller) with an init function. Therein you may access the controller via (App/Controller instance).getController(name).
In case that controller does not exist yet, it will be automatically created.Expected behaviour
Controllers solely handled via getController(name) remain singletons, no matter whether name is the shortform (e.g. "TestController") or the full controller class name (e.g. "MyApp.controller.TestController").Actual behaviour
If accessing the controller once with the full name and another time with the shortform, a second controller will be created in the application.Workaround:
Assure that you exclusively use the full name (or the shortform) of the controller name.Further notes:
This problem is also present (and probably more important due to the lack of ViewControllers) in version 4.2.1-4.2.3 (not tested with even older versions).
Duplicate controller created if using shortform and full name in getController method
Aucun commentaire:
Enregistrer un commentaire