fix store default param
This commit is contained in:
parent
96145b370b
commit
77c98a5e2d
1 changed files with 2 additions and 2 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue