Skip to content

Commit

Permalink
Fixed bug with empty: URL in build config
Browse files Browse the repository at this point in the history
  • Loading branch information
Olayinka Adetoye committed May 7, 2014
1 parent 78d1b34 commit 6fd1a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ define(['text'], function(text){
return {

load : function(name, req, onLoad, config) {
if (( config.isBuild && (config.inlineJSON === false || name.indexOf(CACHE_BUST_QUERY_PARAM +'=') !== -1)) || (url.indexOf('empty:') === 0)) {
if (( config.isBuild && (config.inlineJSON === false || name.indexOf(CACHE_BUST_QUERY_PARAM +'=') !== -1)) || (req.toUrl(name).indexOf('empty:') === 0)) {
//avoid inlining cache busted JSON or if inlineJSON:false
//and don't inline files marked as empty!
onLoad(null);
Expand Down

0 comments on commit 6fd1a76

Please sign in to comment.