bin/jsus in jsus-0.1.10.1 vs bin/jsus in jsus-0.1.10.2
- old
+ new
@@ -74,10 +74,10 @@
root = Choice.choices[:generate_includes] == true ? Choice.choices[:output_directory] : Choice.choices[:generate_includes]
File.open(File.join(Choice.choices[:output_directory], "includes.js"), "w") do |f|
c = Jsus::Container.new(*(package.source_files.to_a + package.linked_external_dependencies.to_a))
script = %{(function(prefix) {
var sources = %sources%;
- for (var i = 0, j = sources.length; i < j; i++) document.write('<scr' + 'ipt src="' + (prefix || '') + sources[i] + "></script>');
+ for (var i = 0, j = sources.length; i < j; i++) document.write('<scr' + 'ipt src="' + (prefix || '') + sources[i] + '"></script>');
})(window.prefix);}.sub("%sources%", JSON.pretty_generate(c.required_files(root)))
f.puts script
end
end