You found a bug! We've classified it as EXTJSIII-210 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User SimoAmi's Avatar
    Join Date
    Oct 2008
    Location
    New York
    Posts
    119
    Vote Rating
    3
    SimoAmi will become famous soon enough

      0  

    Default superclass uses Ext.define(), subclass uses Ext.extend() leads to too much recursion

    superclass uses Ext.define(), subclass uses Ext.extend() leads to too much recursion


    Ext version tested:
    • Ext 3.4.1.1

    Browser versions tested against:
    • Chrome
    • FF3 (firebug 1.12.5installed)

    Description:
    • When a class is defined using Ext.define(), subclasses of that class that are defined using Ext.extend will lead to a "Too much recursion" error when instantiated.

    Standalone test case:
    Steps to reproduce the problem:

    Code:
    Ext.define('X', {});
    var Y = Ext.extend(X, {});
    new Y();
    The result that was expected:
    • should not throw an error

    The result that occurs instead:
    • the error in Chrome is: RangeError: Maximum call stack size exceeded
    • the error in Firefox is: too much recursion

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    5,446
    Vote Rating
    112
    Gary Schlosberg is just really nice Gary Schlosberg is just really nice Gary Schlosberg is just really nice Gary Schlosberg is just really nice Gary Schlosberg is just really nice

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Ext JS Premium Member
    Join Date
    Aug 2007
    Location
    Antwerp, Belgium
    Posts
    576
    Vote Rating
    134
    joeri is a glorious beacon of light joeri is a glorious beacon of light joeri is a glorious beacon of light joeri is a glorious beacon of light joeri is a glorious beacon of light joeri is a glorious beacon of light

      0  

    Default


    See my possible fix on the other thread:
    http://www.sencha.com/forum/showthre...=1#post1066172

    Please test this if you see an opportunity and let me know on the other thread if there are bugs.

Thread Participants: 2