1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-08 10:05:46 +01:00

Fix link search.

This commit is contained in:
Kris Maglione
2011-02-18 14:48:33 -05:00
parent be5c6a4525
commit 54452917b2

View File

@@ -82,7 +82,7 @@ var RangeFinder = Module("rangefinder", {
if (this.rangeFind)
this.rangeFind.cancel();
this.rangeFind = RangeFind(this.window, matchCase, backward,
linksOnly && this.options["hinttags"],
linksOnly && this.options.get("hinttags").matcher,
regexp);
this.rangeFind.highlighted = highlighted;
this.rangeFind.selections = selections;
@@ -380,7 +380,7 @@ var RangeFind = Class("RangeFind", {
findSubRanges: function findSubRanges(range) {
let doc = range.startContainer.ownerDocument;
for (let elem in util.evaluateXPath(this.elementPath, doc)) {
for (let elem in this.elementPath(doc)) {
let r = RangeFind.nodeRange(elem);
if (RangeFind.contains(range, r))
yield r;