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

macros ≡ macros.

This commit is contained in:
Kris Maglione
2011-10-06 08:56:13 -04:00
parent 0cf53f8181
commit 40104c2b8b
5 changed files with 61 additions and 48 deletions

View File

@@ -204,7 +204,17 @@ var Storage = Module("Storage", {
File(IO.runtimePath.replace(/,.*/, ""))
.child("info").child(config.profileName)),
exists: function exists(name) this.infoPath.child(name).exists(),
exists: function exists(key) this.infoPath.child(key).exists(),
remove: function remove(key) {
if (this.exists(key)) {
if (this[key] && this[key].timer)
this[key].timer.flush();
delete this[key];
delete this.keys[key];
this.infoPath.child(key).remove(false);
}
},
newObject: function newObject(key, constructor, params) {
if (params == null || !isObject(params))