From e44eb21a558f6b80c0c038602baf77223709f1d9 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 15 Jan 2015 12:47:04 -0800 Subject: Removed setType(), replaced getType() with type(). --- js/lib/html.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/lib/html.js') 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(); } } -- cgit v1.2.3