mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 22:37:58 +01:00
change remaining uses of the Array() constructor in array initializations to
literals
This commit is contained in:
@@ -378,7 +378,7 @@ function Search() //{{{
|
||||
|
||||
// Creates a default find state
|
||||
this.createInitialFindState = function() {
|
||||
var state = new Array();
|
||||
var state = [];
|
||||
state["screenx"] = this.gWin.scrollX;
|
||||
state["screeny"] = this.gWin.scrollY;
|
||||
state["search-str"] = "";
|
||||
@@ -411,7 +411,7 @@ function Search() //{{{
|
||||
|
||||
// Adds a find state to the stack of such states. This is done every time a find is successful
|
||||
this.addFindState = function(screenX, screenY, searchStr, wrapped, point, range, selection, direction) {
|
||||
var state = new Array();
|
||||
var state = [];
|
||||
state["screenx"] = screenX;
|
||||
state["screeny"] = screenY;
|
||||
state["search-str"] = searchStr;
|
||||
|
||||
Reference in New Issue
Block a user