summaryrefslogtreecommitdiff
path: root/js/lib/xml.js
diff options
context:
space:
mode:
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 64422c9..d7f732c 100644
--- a/js/lib/xml.js
+++ b/js/lib/xml.js
@@ -123,7 +123,7 @@ var renderNodes = function(block) {
break;
}
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]) + ':' +