summaryrefslogtreecommitdiff
path: root/js/lib/xml.js
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-15 11:29:08 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-15 11:29:08 -0800
commit8f2f40679dc21e9d878aaed45fe9dc9d404073d0 (patch)
treec894fb248febd9b87e43bbd9cf6b988e89248744 /js/lib/xml.js
parenta7b27f8ee13f54979d71d961457fc187c9626387 (diff)
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.
Diffstat (limited to 'js/lib/xml.js')
-rw-r--r--js/lib/xml.js2
1 files changed, 1 insertions, 1 deletions
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;