small string concatenation performance optimization

This commit is contained in:
Immad Naseer 2010-02-16 14:34:50 -08:00
parent 3d91a98b3a
commit 7820451108

View File

@ -78,8 +78,8 @@ class Build
phonegapjs = IO.read('phonegap.js.base');
js.each do |script|
next if script[0].chr == "." or script == "phonegap.js.base"
phonegapjs += IO.read(script)
phonegapjs += "\n\n"
phonegapjs << IO.read(script)
phonegapjs << "\n\n"
end
Dir.chdir("#{ @dir}")
File.open("#{ @path }#{ @s }assets#{ @s }www#{ @s }phonegap.js", 'w') {|f| f.write(phonegapjs) }