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

Fix liberator.storage.saveAll().

This commit is contained in:
Kris Maglione
2008-09-11 04:00:23 +00:00
parent 23741d8d50
commit 1e69a5f40c
3 changed files with 15 additions and 27 deletions

View File

@@ -110,7 +110,7 @@ function ObjectStore(name, store)
this.__iterator__ = function() {
for (let key in object)
yield [key, object[key]];
}
};
}
ObjectStore.prototype = prototype;
@@ -162,7 +162,7 @@ function ArrayStore(name, store)
var funcName = aFuncName;
arguments[0] = array;
array = Array[funcName].apply(Array, arguments);
},
};
this.get = function get(index)
{
@@ -172,7 +172,7 @@ function ArrayStore(name, store)
this.__iterator__ = function() {
for(let i = 0; i < array.length; i++)
yield [i, array[i]];
}
};
}
ArrayStore.prototype = prototype;
@@ -230,7 +230,7 @@ var storage = {
saveAll: function storeAll() {
for each(key in keys)
key.store();
key.save();
}
};