requirejs-text now uses CORS XHR requests to static files

This commit is contained in:
Martin Zimmermann 2013-11-05 01:11:53 +01:00
parent 6126f0ec6f
commit 05c8b571e2
3 changed files with 10 additions and 2 deletions

View File

@ -3,5 +3,13 @@ var requirejs = {
q: "components/q/q",
text : "components/requirejs-text/text",
ready: "components/requirejs-domready/domReady"
},
config: {
text: {
useXhr: function (url, protocol, hostname, port) {
return true;
}
}
}
};