The applications works fine, but after the build, RangeErrror is thrown: "Maximum call stack size exceeded" on one Construct initialization.
The _super is pointing not to the parent but to the self:
Simple Structure: A extends B, B extends C, D and E extends C. => new D();
and recursion appears on B._super();
ControllerA=can.Control.extend({},
init:function(element, options){
....
ControllerB=ControllerA.extend({},{
init:function(element, options){
this._super(element, options);
........
ControllerC=ControllerB.extend({},{
init:function(element, options){
this._super(element, options);
........
ControllerD=ControllerC.extend({},{
init:function(element, options){
this._super(element, options);
ControllerE=ControllerC.extend({},{
init:function(element, options){
this._super(element, options);
new ControllerD("selector:);
All parts works fine in original/development mode, and this error appears only on production mode.