Skip to content
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

Multiple script definitions with same url will choose last definition regardless of name. #14

Open
wforney opened this issue Dec 19, 2011 · 1 comment

Comments

@wforney
Copy link

wforney commented Dec 19, 2011

Multiple script definitions with same url will choose last definition regardless of name.

Example:

jQuery: {
    bare: true,
    url: aspnetcdn + "/jQuery/jquery-1.7.1.js",
    urlMin: aspnetcdn + "/jQuery/jquery-1.7.1.min.js",
    loaded: "!!window.jQuery"
},
jQuery171: {
    bare: true,
    url: aspnetcdn + "/jQuery/jquery-1.7.1.js",
    urlMin: aspnetcdn + "/jQuery/jquery-1.7.1.min.js",
   loaded: "window.checkjQueryVersion(171)"
},

defer call to jQuery will load jQuery171 definition script. This is not expected (loaded was different, causing test to fail in some cases, which was a bad thing)

@BorisMoore
Copy link
Owner

Yes, the way it is designed, the url is 'king', and the key is just a friendly alias for the URL. So you can't point different aliases to the same URL, other than as a replacement for the earlier alias. I agree the scenario of jQueryLatest is a nice one which is not supported in the current design... Need to consider this for a future version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants