From 8f2f40679dc21e9d878aaed45fe9dc9d404073d0 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 15 Jan 2015 11:29:08 -0800 Subject: Added getType(), setType() to node.js. Use these instead of direct property access. This is the first step in a general move towards an API like the one libcmark has. This will allow us to have a stable API that is independent of details of the AST. --- js/lib/xml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/lib/xml.js') diff --git a/js/lib/xml.js b/js/lib/xml.js index ada61f7..4932e31 100644 --- a/js/lib/xml.js +++ b/js/lib/xml.js @@ -72,7 +72,7 @@ var renderNodes = function(block) { while ((event = walker.next())) { entering = event.entering; node = event.node; - nodetype = node.t; + nodetype = node.getType(); if (nodetype === 'ReferenceDef') { continue; -- cgit v1.2.3