1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 05:04:11 +01:00

[PWPBM] DTRT WRT titlemodifiers.

This commit is contained in:
Kris Maglione
2013-04-26 20:26:49 -07:00
parent 7f7565e86a
commit fc11842f5d
2 changed files with 8 additions and 2 deletions

View File

@@ -246,9 +246,14 @@ var Storage = Module("Storage", {
if (params == null || !isObject(params))
throw Error("Invalid argument type");
if (!(key in this.keys) && this.privateMode && key in this.globalInstance.keys) {
let obj = this.globalInstance.keys[key];
this.keys[key] = obj.clone ? obj.clone(this) : obj;
}
if (!(key in this.keys) || params.reload || this.alwaysReload[key]) {
if (key in this && !(params.reload || this.alwaysReload[key]))
throw Error();
throw Error("WTF? Hm...");
let load = function () self._loadData(key, params.store, params.type || myObject);
this.keys[key] = new constructor(key, params.store, load, params);