cmark

My personal build of CMark ✏️

Commit
977a9dd1cd0e5574799211d697b0889431fc0876
Parent
ec48b49edb041b8a42d3f35c8738f869cec9dc49
Author
John MacFarlane <jgm@berkeley.edu>
Date

Small optimization.

Diffstat

1 file changed, 1 insertion, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified js/lib/node.js 2 1 1
diff --git a/js/lib/node.js b/js/lib/node.js
@@ -167,7 +167,7 @@ var toASTNode = function(node) {
     var propsToShow = ['t', 'literal', 'list_data', 'sourcepos',
                        'info', 'level'];
 
-    for (var i = 0; i < propsToShow.length; i++) {
+    for (var i = 0, len = propsToShow.length; i < len; i++) {
         var prop = propsToShow[i];
         if (node[prop] !== undefined) {
             result[prop] = node[prop];