aboutsummaryrefslogtreecommitdiff
path: root/js/lib/html.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/html.js')
-rw-r--r--js/lib/html.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/lib/html.js b/js/lib/html.js
index fd0aaf1..e39b4ac 100644
--- a/js/lib/html.js
+++ b/js/lib/html.js
@@ -68,7 +68,7 @@ var renderNodes = function(block) {
}
}
- switch (node.getType()) {
+ switch (node.type()) {
case 'Text':
out(esc(node.literal));
break;
@@ -134,7 +134,7 @@ var renderNodes = function(block) {
case 'Paragraph':
grandparent = node.parent.parent;
if (grandparent !== null &&
- grandparent.getType() === 'List') {
+ grandparent.type() === 'List') {
if (grandparent.list_data.tight) {
break;
}
@@ -221,7 +221,7 @@ var renderNodes = function(block) {
break;
default:
- throw "Unknown node type " + node.getType();
+ throw "Unknown node type " + node.type();
}
}