From 8c7ca2e30044925bcf611ddc816580d6746c7101 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 9 Jan 2015 19:15:07 -0800 Subject: JS: Renamed 'c' property to 'literal' to match libcmark. --- js/lib/node.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'js/lib/node.js') diff --git a/js/lib/node.js b/js/lib/node.js index 102003c..e57a281 100644 --- a/js/lib/node.js +++ b/js/lib/node.js @@ -72,7 +72,7 @@ function Node(nodeType, sourcepos) { this.open = true; this.strings = undefined; this.string_content = undefined; - this.c = undefined; + this.literal = undefined; this.list_data = undefined; this.info = undefined; this.destination = undefined; @@ -167,7 +167,8 @@ Node.prototype.toAST = function() { var cur; var result = { t: this.t }; - var propsToShow = ['t', 'c', 'list_data', 'sourcepos', 'info', 'level']; + var propsToShow = ['t', 'literal', 'list_data', 'sourcepos', + 'info', 'level']; for (var i = 0; i < propsToShow.length; i++) { var prop = propsToShow[i]; -- cgit v1.2.3