mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 20:33:07 +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');
|
phonegapjs = IO.read('phonegap.js.base');
|
||||||
js.each do |script|
|
js.each do |script|
|
||||||
next if script[0].chr == "." or script == "phonegap.js.base"
|
next if script[0].chr == "." or script == "phonegap.js.base"
|
||||||
phonegapjs += IO.read(script)
|
phonegapjs << IO.read(script)
|
||||||
phonegapjs += "\n\n"
|
phonegapjs << "\n\n"
|
||||||
end
|
end
|
||||||
Dir.chdir("#{ @dir}")
|
Dir.chdir("#{ @dir}")
|
||||||
File.open("#{ @path }#{ @s }assets#{ @s }www#{ @s }phonegap.js", 'w') {|f| f.write(phonegapjs) }
|
File.open("#{ @path }#{ @s }assets#{ @s }www#{ @s }phonegap.js", 'w') {|f| f.write(phonegapjs) }
|
||||||
|
Loading…
Reference in New Issue
Block a user