summaryrefslogtreecommitdiff
path: root/js/lib
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-12 10:00:41 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-12 10:01:53 -0800
commitb7eb63c8be719a43c9aba48484648f375e376c53 (patch)
tree0b011b37d4d180c6cc71ba4c7091a6152a545632 /js/lib
parent9255a83189a50bef4302bdbfa9e2489871811797 (diff)
html.js, xml.js: avoid using concat.
Diffstat (limited to 'js/lib')
-rw-r--r--js/lib/html.js2
-rw-r--r--js/lib/xml.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/js/lib/html.js b/js/lib/html.js
index db87c22..e361fe1 100644
--- a/js/lib/html.js
+++ b/js/lib/html.js
@@ -9,7 +9,7 @@ var tag = function(name, attrs, selfclosing) {
var i = 0;
var attrib;
while ((attrib = attrs[i]) !== undefined) {
- result = result.concat(' ', attrib[0], '="', attrib[1], '"');
+ result += ' ' + attrib[0] + '="' + attrib[1] + '"';
i++;
}
}
diff --git a/js/lib/xml.js b/js/lib/xml.js
index e8fba6a..e867fdc 100644
--- a/js/lib/xml.js
+++ b/js/lib/xml.js
@@ -9,7 +9,7 @@ var tag = function(name, attrs, selfclosing) {
var i = 0;
var attrib;
while ((attrib = attrs[i]) !== undefined) {
- result = result.concat(' ', attrib[0], '="', attrib[1], '"');
+ result += ' ' + attrib[0] + '="' + attrib[1] + '"';
i++;
}
}