1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-15 23:25:47 +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

@@ -4,7 +4,6 @@
// given in the LICENSE.txt file included with this file.
"use strict";
var myObject = Object;
Components.utils.import("resource://dactyl/bootstrap.jsm");
defineModule("storage", {
exports: ["File", "storage"],
@@ -12,6 +11,7 @@ defineModule("storage", {
}, this);
var win32 = /^win(32|nt)$/i.test(services.runtime.OS);
var myObject = JSON.parse("{}").constructor;
function loadData(name, store, type) {
try {
@@ -55,7 +55,7 @@ var StoreBase = Class("StoreBase", {
this.fireEvent("change", null);
},
remove: function remove() {
delete: function delete() {
delete storage.keys[this.name];
delete storage[this.name];
storage.infoPath.child(this.name).remove(false);