-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Double loading of JS-file with and without !order option #30
Comments
I have created a small application that demonstrates the problem. You can see double loading in "Net" tab in Firebug or in console in Firebug/Chrome. The application can be downloaded using the following URL: |
Thanks for discovering this, gamtiq! The solution for this is to add the normalize() method to the js! plugin. Do you need a work-around for now or can you continue to work for a few Regards, -- John On Mon, Nov 7, 2011 at 3:06 AM, gamtiq <
|
No, I don’t need immediate fix for this issue because I have already found and implemented a work-around in my application. |
Hello,
First of all I would like to thank you for the great loader. It is very useful.
I found a bug in curl.js that leads to problems when a JS file is used as a dependency with and without !order option. Namely, if one module depends on "someFile.js" and another module depends on "someFile.js!order", then this situation causes double loading of "someFile.js". As a result some strange and difficult to find bugs can occur in an application. The problem has its roots in the following part of fetchDep function (lines 541 and 542 in curl.js):
As you can see there is no test for options in "resName".
Best regards.
The text was updated successfully, but these errors were encountered: