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,4 +3,4 @@ define(["text!./postbox.html", "text!./comment.html"], function (postbox, commen
postbox: postbox,
comment: comment
};
});
});

View File

@ -4,4 +4,4 @@ define(["text!./forward.svg", "text!./arrow-down.svg", "text!./arrow-up.svg"], f
"arrow-down": arrdown,
"arrow-up": arrup
};
});
});

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;
}
}
}
};