diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-01-15 14:17:27 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-15 14:17:27 -0800 |
commit | 604c15c301a634a7c237e2336296d2d86d771fcf (patch) | |
tree | 4eb045fcf90d614c15290247f66656c49afe81a4 /js/lib/xml.js | |
parent | 8e51ff90c5d6fb2b8c4cec54a77cfd45f7eb8e8f (diff) |
Rename sourcepos -> _sourcepos, added sourcepos() accessor.
Diffstat (limited to 'js/lib/xml.js')
-rw-r--r-- | js/lib/xml.js | 2 |
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]) + ':' + |