1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-29 15:35:46 +01:00

Fix minor completion bug with quoting.

This commit is contained in:
Kris Maglione
2010-12-20 03:46:13 -05:00
parent b0374abcac
commit a0adb276d0
2 changed files with 5 additions and 12 deletions

View File

@@ -610,16 +610,7 @@ const RangeFind = Class("RangeFind", {
this.save();
},
intersects: function (range) {
try {
return this.range.compareBoundaryPoints(range.START_TO_END, range) >= 0 &&
this.range.compareBoundaryPoints(range.END_TO_START, range) <= 0;
}
catch (e) {
dactyl.reportError(e, true);
return false;
}
},
intersects: function (range) RangeFind.intersects(this.range, range),
save: function () {
this.scroll = Point(this.window.pageXOffset, this.window.pageYOffset);