mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-16 18:13:32 +01:00
Fix marks.js issue.
This commit is contained in:
@@ -224,10 +224,10 @@ var Marks = Module("marks", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_scrollTo: function _scrollTo(mark) {
|
_scrollTo: function _scrollTo(mark) {
|
||||||
if (!mark.xpath)
|
if (!mark.path)
|
||||||
var node = buffer.findScrollable(0, (mark.offset || mark.position).x)
|
var node = buffer.findScrollable(0, (mark.offset || mark.position).x)
|
||||||
else
|
else
|
||||||
for (node in DOM.XPath(mark.xpath, buffer.focusedFrame.document))
|
for (node in DOM.XPath(mark.path, buffer.focusedFrame.document))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
util.assert(node);
|
util.assert(node);
|
||||||
|
|||||||
Reference in New Issue
Block a user