1
0
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:
Doug Kearns
2007-08-11 12:46:13 +00:00
parent 101bcf025e
commit 5b6b78d815
6 changed files with 13 additions and 13 deletions

View File

@@ -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;