1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-13 12:45:49 +01:00

Don't report live bookmark items as bookmarked.

This commit is contained in:
Kris Maglione
2009-10-09 00:17:57 -04:00
parent e62d9f96a5
commit 8b7b290e65
4 changed files with 28 additions and 25 deletions

View File

@@ -308,10 +308,10 @@ var storage = {
alwaysReload: {},
newObject: function newObject(key, constructor, store, type, options, reload)
{
if (!(key in keys) || reload || key in this.alwaysReload)
if (!(key in keys) || reload || this.alwaysReload[key])
{
if (key in this && !reload)
throw Error;
if (key in this && !(reload || this.alwaysReload[key]))
throw Error();
let load = function () loadPref(key, store, type || Object);
keys[key] = new constructor(key, store, load, options || {});
timers[key] = new Timer(1000, 10000, function () storage.save(key));