1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-03 17:55:47 +01:00

Remove bare references to 'content'.

This commit is contained in:
Kris Maglione
2010-10-04 22:09:54 -04:00
parent 2012279ad9
commit 9af8705807
5 changed files with 20 additions and 14 deletions

View File

@@ -275,7 +275,7 @@ const RangeFind = Class("RangeFind", {
this.matchCase = Boolean(matchCase);
this.regex = Boolean(regex);
this.ranges = this.makeFrameList(content);
this.ranges = this.makeFrameList(window.content);
this.reset();
@@ -302,7 +302,7 @@ const RangeFind = Class("RangeFind", {
get searchString() this.lastString,
get selectedRange() {
let selection = (buffer.focusedFrame || content).getSelection();
let selection = (buffer.focusedFrame || window.content).getSelection();
return (selection.rangeCount ? selection.getRangeAt(0) : this.ranges[0].range).cloneRange();
},
set selectedRange(range) {