View Full Version : quotes missing ext-all-dev.js loadScriptFile function line 7590 - causes IE to fail

26 Nov 2013, 12:28 PM

This is my first post in this forum and I am not sure if its a bug. Please correct me if I am missing anything. I recently made a switch to ext-all-dev.js from ext-all-debug.js and found that somehow my IE didn't find that pleasant enough. The controllers that were working on ext-all-debug.js, failed to load when I used ext-all-dev.js. Later I found that the loadScriptFile function in ext-all-dev.js was the troublemaker.
Here is the ext-all-debug.js code at line 4343

new Function(xhr.responseText + "\n//@ sourceURL='" + fileName + "'")();
and here is the ext-all-dev.js code at line 7590

new Function(xhr.responseText + "\n//@ sourceURL=" + fileName)();
The single quotes as we see are missing in the dev code. Once I added the quotes everything started working again.
However I see a comment in ext-dev :

// Firebug friendly, file names are still shown even though they're eval'ed code

Not sure if this has got to do something or is there something I am doing wrong with my code.

Gary Schlosberg
26 Nov 2013, 3:59 PM
In which version of ExtJS are you seeing this issue?

27 Nov 2013, 8:58 AM
Aah forgot to mention that. Its Ext 4.0.2.


Gary Schlosberg
27 Nov 2013, 12:41 PM
I don't see single quotes in the ext-all-debug.js for 4.0.2. In either case, that code has changed in newer versions. Are you able to try your code against 4.2.1?

2 Dec 2013, 8:16 AM
Ok. Thanks!