mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
small string concatenation performance optimization
This commit is contained in:
parent
3d91a98b3a
commit
7820451108
4
droidgap
4
droidgap
@ -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) }
|
||||
|
Loading…
Reference in New Issue
Block a user