- Commit
- b7eb63c8be719a43c9aba48484648f375e376c53
- Parent
- 9255a83189a50bef4302bdbfa9e2489871811797
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
html.js, xml.js: avoid using concat.
My personal build of CMark ✏️
html.js, xml.js: avoid using concat.
2 files changed, 2 insertions, 2 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | js/lib/html.js | 2 | 1 | 1 |
Modified | js/lib/xml.js | 2 | 1 | 1 |
diff --git 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 @@ -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++; } }