[Pkg-javascript-commits] [ltx] 13/25: do not use es6 in stringify (#106)

Jonas Smedegaard dr at jones.dk
Tue Jan 10 18:21:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository ltx.

commit 2617c64babcbffd1ecf210957e3f23cb498c731b
Author: Sonny Piers <sonny at fastmail.net>
Date:   Wed Dec 7 19:49:28 2016 +0100

    do not use es6 in stringify (#106)
---
 lib/stringify.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/stringify.js b/lib/stringify.js
index cdba6ea..f9fd1d7 100644
--- a/lib/stringify.js
+++ b/lib/stringify.js
@@ -6,13 +6,13 @@ function stringify (el, indent, level) {
   var s = ''
   s += '<' + el.name
 
-  Object.keys(el.attrs).forEach((k) => {
+  Object.keys(el.attrs).forEach(function (k) {
     s += ' ' + k + '=' + '"' + el.attrs[k] + '"'
   })
 
   if (el.children.length) {
     s += '>'
-    el.children.forEach((child, i) => {
+    el.children.forEach(function (child, i) {
       if (indent) s += '\n' + indent.repeat(level)
       if (typeof child === 'string') {
         s += child

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git



More information about the Pkg-javascript-commits mailing list