From 604c15c301a634a7c237e2336296d2d86d771fcf Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 15 Jan 2015 14:17:27 -0800 Subject: Rename sourcepos -> _sourcepos, added sourcepos() accessor. --- js/lib/html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/lib/html.js') diff --git a/js/lib/html.js b/js/lib/html.js index e39b4ac..608193d 100644 --- a/js/lib/html.js +++ b/js/lib/html.js @@ -60,7 +60,7 @@ var renderNodes = function(block) { attrs = []; if (options.sourcepos) { - var pos = node.sourcepos; + var pos = node.sourcepos(); if (pos) { attrs.push(['data-sourcepos', String(pos[0][0]) + ':' + String(pos[0][1]) + '-' + String(pos[1][0]) + ':' + -- cgit v1.2.3