From 05c8b571e21eb81245e985dc1534973510800c1b Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Tue, 5 Nov 2013 01:11:53 +0100 Subject: [PATCH] requirejs-text now uses CORS XHR requests to static files --- isso/js/app/text/html.js | 2 +- isso/js/app/text/svg.js | 2 +- isso/js/config.js | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/isso/js/app/text/html.js b/isso/js/app/text/html.js index d50a479..eed9515 100644 --- a/isso/js/app/text/html.js +++ b/isso/js/app/text/html.js @@ -3,4 +3,4 @@ define(["text!./postbox.html", "text!./comment.html"], function (postbox, commen postbox: postbox, comment: comment }; -}); \ No newline at end of file +}); diff --git a/isso/js/app/text/svg.js b/isso/js/app/text/svg.js index dce1319..653148b 100644 --- a/isso/js/app/text/svg.js +++ b/isso/js/app/text/svg.js @@ -4,4 +4,4 @@ define(["text!./forward.svg", "text!./arrow-down.svg", "text!./arrow-up.svg"], f "arrow-down": arrdown, "arrow-up": arrup }; -}); \ No newline at end of file +}); diff --git a/isso/js/config.js b/isso/js/config.js index e470bc0..d6e9efc 100644 --- a/isso/js/config.js +++ b/isso/js/config.js @@ -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; + } + } } };