Browse files

Merge pull request #60 from dakota/patch-1

Fixes issue where the text plugin does not honour 'empty:' config baths ...
  • Loading branch information...
2 parents 9cb21c8 + 6f61683 commit 5e0f16ae58a00a5382571be1bbd2af65944255db @jrburke jrburke committed Aug 2, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 text.js
View
6 text.js
@@ -176,6 +176,12 @@ define(['module'], function (module) {
useXhr = (masterConfig.useXhr) ||
text.useXhr;
+ // Do not load if it is an empty: url
+ if (url.indexOf('empty:') === 0) {
+ onLoad();
+ return;
+ }
+
//Load the text. Use XHR if possible and in a browser.
if (!hasLocation || useXhr(url, defaultProtocol, defaultHostName, defaultPort)) {
text.get(url, function (content) {

0 comments on commit 5e0f16a

Please sign in to comment.