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

@@ -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]))