1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 00:17: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

@@ -51,8 +51,8 @@ function Bookmarks() //{{{
{
// update our bookmark cache
var root = rdf_service.GetResource("NC:BookmarksRoot");
bookmarks = new Array(); // also clear our bookmark cache
keywords = new Array();
bookmarks = []; // also clear our bookmark cache
keywords = [];
var bmarks = []; // here getAllChildren will store the bookmarks
BookmarksUtils.getAllChildren(root, bmarks);
@@ -158,7 +158,7 @@ function Bookmarks() //{{{
/* also ensures that each search engine has a vimperator-friendly alias */
this.getSearchEngines = function()
{
var search_engines = new Array();
var search_engines = [];
var firefox_engines = search_service.getVisibleEngines({ });
for (var i in firefox_engines)
{
@@ -346,7 +346,7 @@ function History() //{{{
function load()
{
history = new Array();
history = [];
var historytree = document.getElementById("hiddenHistoryTree");
if (!historytree)