+ getListStepped: function(aCallback) {
+ if (!mainDB)
+ return;
+ var transaction = mainDB.transaction([this.objStore]);
+ var objStore = transaction.objectStore(this.objStore);
+ // Use cursor in reverse direction (so we get the most recent position first)
+ objStore.openCursor(null, "prev").onsuccess = function(event) {
+ var cursor = event.target.result;
+ if (cursor) {
+ aCallback(cursor.value);
+ cursor.continue();
+ }
+ else {
+ aCallback(null);
+ }
+ };
+ },
+