Results 1 to 3 of 3

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

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User SimoAmi's Avatar
    Join Date
    Oct 2008
    Location
    New York
    Posts
    119

    Default 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 User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    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
    582

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •