1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 05:54:12 +01:00

Fix finder on view-source: pages on recent Gecko 2.

This commit is contained in:
Kris Maglione
2010-10-21 16:16:14 -04:00
parent acb635d825
commit f3d194b00b

View File

@@ -621,9 +621,11 @@ const RangeFind = Class("RangeFind", {
},
deselect: function () {
this.selection.removeAllRanges();
if (this.initialSelection)
this.selection.addRange(this.initialSelection);
if (this.selection) {
this.selection.removeAllRanges();
if (this.initialSelection)
this.selection.addRange(this.initialSelection);
}
},
get selectionController() this.docShell