PDA

View Full Version : [INFOREQ] Constructor on Controller override not working



halcwb
9 Aug 2013, 1:30 PM
REQUIRED INFORMATION

Ext version tested:

Ext 4.2 rev1
Browser versions tested against:

Probably not related to browser, tested in Chrome and FF
DOCTYPE tested against:

____
Description:

Because of Architect an override of controller is needed to implement custom code. Also overriding of the constructor for overrides works well for other classes but not for a controller
Steps to reproduce the problem:

Define a controller
Create an override
Implement a constructor
Create Controller
The result that was expected:

Constructor with config settings as in constructor method
The result that occurs instead:

An error
Test Case:

See fiddle (https://fiddle.sencha.com/#fiddle/7l):

Gary Schlosberg
9 Aug 2013, 5:04 PM
Thanks for the report! I have opened a bug in our bug tracker.

evant
9 Aug 2013, 6:32 PM
In your test case you never call the superclass constructor.

halcwb
10 Aug 2013, 2:46 PM
In your test case you never call the superclass constructor.

Arghh, stupid of me, thanks.