1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 17:25:45 +01:00

Make autocompletion generally more reasonable

This commit is contained in:
Kris Maglione
2008-10-06 18:48:08 +00:00
parent 4860ff32fe
commit 899fa605e6
8 changed files with 97 additions and 66 deletions

View File

@@ -311,7 +311,8 @@ liberator.Bookmarks = function () //{{{
{
if (bypassCache) // Is this really necessary anymore?
cache.load();
return liberator.completion.filterURLArray(cache.bookmarks, filter, tags);
return liberator.completion.cached(cache.bookmarks, filter, function () cache.bookmarks,
"filterURLArray", tags);
},
// if starOnly = true it is saved in the unfiledBookmarksFolder, otherwise in the bookmarksMenuFolder
@@ -709,8 +710,8 @@ liberator.History = function () //{{{
if (!history)
load();
return liberator.completion.filterURLArray(cachedHistory, filter).concat(
liberator.completion.filterURLArray(history, filter));
return liberator.completion.cached("history", filter, function() cachedHistory.concat(history),
"filterURLArray");
},
// the history is automatically added to the Places global history