1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 16:14:12 +01:00

Small fix for Minefield.

This commit is contained in:
Kris Maglione
2011-02-19 00:24:07 -05:00
parent cb0a07ddd1
commit 34c0c5a10e
5 changed files with 12 additions and 7 deletions

View File

@@ -661,7 +661,7 @@ var Bookmarks = Module("bookmarks", {
ctxt.compare = CompletionContext.Sort.unsorted;
ctxt.filterFunc = null;
let words = ctxt.filter.split(/\s+/g);
let words = ctxt.filter.toLowerCase().split(/\s+/g);
ctxt.completions = ctxt.completions.filter(function (i) words.every(function (w) i.toLowerCase().indexOf(w) >= 0));
ctxt.hasItems = ctxt.completions.length;

View File

@@ -12,9 +12,8 @@
*/
var Marks = Module("marks", {
init: function init() {
function replacer(key, val) val instanceof Ci.nsISupports ? null : val;
this._localMarks = storage.newMap("local-marks", { privateData: true, replacer: replacer, store: true });
this._urlMarks = storage.newMap("url-marks", { privateData: true, replacer: replacer, store: true });
this._localMarks = storage.newMap("local-marks", { privateData: true, replacer: Storage.Replacer.skipXpcom, store: true });
this._urlMarks = storage.newMap("url-marks", { privateData: true, replacer: Storage.Replacer.skipXpcom, store: true });
try {
if (isArray(Iterator(this._localMarks).next()[1]))