1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 14:02:28 +01:00

more AR whitespace fixes

This commit is contained in:
Doug Kearns
2008-09-11 08:23:46 +00:00
parent 3113c26a86
commit 8c3cfc4c8c
4 changed files with 34 additions and 30 deletions

View File

@@ -50,7 +50,8 @@ function getCharPref(name)
}
}
function prefName(key) {
function prefName(key)
{
return "extensions.liberator.datastore." + key;
}
@@ -107,7 +108,8 @@ function ObjectStore(name, store)
object = {};
};
this.__iterator__ = function() {
this.__iterator__ = function ()
{
for (let key in object)
yield [key, object[key]];
};
@@ -169,7 +171,8 @@ function ArrayStore(name, store)
return index >= 0 ? array[index] : array[array.length + index];
};
this.__iterator__ = function() {
this.__iterator__ = function ()
{
for (let i = 0; i < array.length; i++)
yield [i, array[i]];
};
@@ -228,7 +231,8 @@ var storage = {
callback(key, event, arg);
},
saveAll: function storeAll() {
saveAll: function storeAll()
{
for each(key in keys)
key.save();
}