I'm having a problem loading a javascript file using Request. My
scenario is something like this:
I want to load the file as text and then run it manually in a more
restricted context (inside a "(function () { // file here})();" for
example).But when Request finishes loading the file, it automatically runs it. So after that, when I call it manually, it will run twice. From what I saw in the code, Request calls "processScripts" that will execute javascript files (identified by the content header - in my case "application/x-javascript") even if I set evalResponse to false (the default option). My workaround is to name my files something else (without the .js extension), otherwise my server will send it with the javascript header and MooTools will execute it after downloading it. Is there any other workaround for this? Shouldn't evalResponse be true by default and when needed, setting it to false would avoid executing scripts after loading them? Best regards.
