-
31 Oct 2012 11:24 AM #1
ExtJS 4.1.1a : Using Ext.extend on Array throws exception in Safari on Mac OS
ExtJS 4.1.1a : Using Ext.extend on Array throws exception in Safari on Mac OS
code:
works on all major browsers except Safari on Mac OS (works fine on Safari on Windows)Code:Ext.define('Array2', { extend : Array })
Tested on Safari 5.1.7 on Windows and Mac OS X.
-
31 Oct 2012 1:50 PM #2
I did not see any issue in the latest version.
-
31 Oct 2012 2:44 PM #3
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!
-
31 Oct 2012 2:55 PM #4
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.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote