mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-29 18:33:36 +02:00
Default arguments ftw.
This commit is contained in:
@@ -75,9 +75,7 @@ var RangeFinder = Module("rangefinder", {
|
||||
this.find("", mode == this.modes.FIND_BACKWARD);
|
||||
},
|
||||
|
||||
bootstrap: function bootstrap(str, backward) {
|
||||
if (arguments.length < 2 && this.rangeFind)
|
||||
backward = this.rangeFind.reverse;
|
||||
bootstrap: function bootstrap(str, backward=this.rangeFind && this.rangeFind.reverse) {
|
||||
|
||||
let highlighted = this.rangeFind && this.rangeFind.highlighted;
|
||||
let selections = this.rangeFind && this.rangeFind.selections;
|
||||
|
||||
Reference in New Issue
Block a user