Results 1 to 4 of 4

Thread: ExtJS 4.1.1a : Using Ext.extend on Array throws exception in Safari on Mac OS

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    18
    Vote Rating
    1
      0  

    Default ExtJS 4.1.1a : Using Ext.extend on Array throws exception in Safari on Mac OS

    code:

    Code:
    Ext.define('Array2', {
        extend : Array
    })
    works on all major browsers except Safari on Mac OS (works fine on Safari on Windows)

    Tested on Safari 5.1.7 on Windows and Mac OS X.

  2. #2
    Sencha User kevin.chen's Avatar
    Join Date
    Sep 2012
    Location
    Redwood City, CA
    Posts
    242
    Vote Rating
    6
      0  

    Default

    I did not see any issue in the latest version.

  3. #3
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,425
    Vote Rating
    858
      0  

    Default

    What do you mean by "doesn't work"? Does it throw an exception?
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  4. #4
    Sencha User
    Join Date
    Apr 2011
    Posts
    18
    Vote Rating
    1
      0  

    Default

    Yes it throws an exception. I provided the code and version, you guys should run the 2 line code and see for yourself. Anyway the exception is:

    ext-all-debug.js:3351 TypeError: 'undefined' is not a constructor (evaluating 'new prototype.configClass()')

    This occurs in function 'extend'. I have (or had) a class which extends from Array. ExtJS throws exception in the extend function (see error message above). Also, this happens when the debugger is off. For some reason whenever I turn on debugging it works fine (reproduces 100% of the time).

    How to reproduce:

    Debugging should be *disabled* for this error to occur.
    (If its on, turn it off in the debugger in Safari (bottom left corner in scripts tab) and run the above code.

    Open the console and see the error.

Tags for this Thread

Posting Permissions

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