From 77c98a5e2d6bd96ceae5dc5ba2ec2a3ea748f3d3 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Mon, 3 Jan 2022 18:55:14 -0500 Subject: [PATCH] fix store default param --- src/data/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/index.js b/src/data/index.js index b002473e..0c197470 100644 --- a/src/data/index.js +++ b/src/data/index.js @@ -110,7 +110,7 @@ return pc; } - SP.keys = function(callback, lower, upper, store) { + SP.keys = function(callback, lower, upper, store = this.current) { if (!this.db) { this.init(); return this.queue.push(["keys", callback, lower, upper, store]); @@ -125,7 +125,7 @@ }, lower, upper, true, store); }; - SP.iterate = function(callback, lower, upper, nullterm, store) { + SP.iterate = function(callback, lower, upper, nullterm, store = this.current) { if (!this.db) { this.init(); return this.queue.push(["iterate", callback, lower, upper, nullterm, store]);