1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-19 16:35:49 +01:00

Make buffer.URL a string again. Use buffer.uri and buffer.documentURI internally. Fix loading Object stores.

This commit is contained in:
Kris Maglione
2011-01-16 12:14:43 -05:00
parent 7d178cfb34
commit 5b56624043
10 changed files with 42 additions and 35 deletions

View File

@@ -310,16 +310,16 @@ var CommandLine = Module("commandline", {
this._callbacks = {};
this._store = storage.newMap("command-history", { store: true, privateData: true });
memoize(this, "_store", function () storage.newMap("command-history", { store: true, privateData: true }));
for (let name in values(["command", "search"]))
if (storage.exists("history-" + name)) {
let ary = storage.newArray("history-" + name, { store: true, privateData: true });
this._store.set(name, [v for ([k, v] in ary)]);
ary.remove();
ary.delete();
this._store.changed();
}
this._store.changed();
this._messageHistory = { //{{{
_messages: [],