summaryrefslogtreecommitdiff
path: root/js/lib/inlines.js
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-15 12:47:04 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-15 12:47:04 -0800
commite44eb21a558f6b80c0c038602baf77223709f1d9 (patch)
treecf380efe004fca605af89a01e7896eb4697711ea /js/lib/inlines.js
parent666c2be2ffdf865644fec34ac13e1ebd2e4d9fc8 (diff)
Removed setType(), replaced getType() with type().
Diffstat (limited to 'js/lib/inlines.js')
-rw-r--r--js/lib/inlines.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/inlines.js b/js/lib/inlines.js
index cfe085f..f12e297 100644
--- a/js/lib/inlines.js
+++ b/js/lib/inlines.js
@@ -658,7 +658,7 @@ var parseNewline = function(block) {
this.pos += 1; // assume we're at a \n
// check previous node for trailing spaces
var lastc = block.lastChild;
- if (lastc && lastc.getType() === 'Text') {
+ if (lastc && lastc.type() === 'Text') {
var sps = reFinalSpace.exec(lastc.literal)[0].length;
if (sps > 0) {
lastc.literal = lastc.literal.replace(reFinalSpace, '');