Skip to content

Commit

Permalink
Merge remote-tracking branch 'bartvde/synth' into synth.
Browse files Browse the repository at this point in the history
Thanks @bartvde for this excellent contribution (closes #5)
  • Loading branch information
ahocevar committed Oct 18, 2011
2 parents 74c0a04 + 40bcaea commit 06823ef
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 286 deletions.
21 changes: 4 additions & 17 deletions app/autoloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,15 @@ var template = ' \n\
parts.pop(); \n\
var path = parts.join("/"); \n\
\n\
var appendable = !(/MSIE/.test(navigator.userAgent) || \n\
/Safari/.test(navigator.userAgent)); \n\
var pieces = new Array(jsfiles.length); \n\
\n\
var element = document.getElementsByTagName("head").length ? \n\
document.getElementsByTagName("head")[0] : \n\
document.body; \n\
var script, src; \n\
var src; \n\
\n\
for(var i=0; i<jsfiles.length; i++) { \n\
src = path + "/" + jsfiles[i]; \n\
if(!appendable) { \n\
pieces[i] = "<script src=\'" + src + "\'></script>"; \n\
} else { \n\
script = document.createElement("script"); \n\
script.src = src; \n\
element.appendChild(script); \n\
} \n\
} \n\
if(!appendable) { \n\
document.write(pieces.join("")); \n\
pieces[i] = "<script src=\'" + src + "\'></script>"; \n\
} \n\
document.write(pieces.join("")); \n\
})(); \n\
';

Expand Down Expand Up @@ -153,4 +140,4 @@ var URLMap = function(map, options) {

throw {notfound: true};
}
}
}
2 changes: 1 addition & 1 deletion app/static/externals/gxp
Submodule gxp updated from 082678 to 089aee
Loading

0 comments on commit 06823ef

Please sign in to comment.