Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aurel
jio
Commits
06d95efd
Commit
06d95efd
authored
Apr 16, 2014
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indexeddb throws unsupported options for allDocs
parent
b07c5b5b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
src/jio.storage/indexeddbstorage.js
src/jio.storage/indexeddbstorage.js
+19
-1
No files found.
src/jio.storage/indexeddbstorage.js
View file @
06d95efd
...
...
@@ -429,7 +429,25 @@
// XXX doc string
IndexedDBStorage
.
prototype
.
getList
=
function
(
option
)
{
var
rows
=
[],
onCancel
,
open_req
=
indexedDB
.
open
(
this
.
_database_name
);
var
rejected_options
=
[],
supported_options
=
{
"
limit
"
:
true
,
"
select_list
"
:
true
,
"
include_docs
"
:
true
},
rows
=
[],
onCancel
,
open_req
;
Object
.
keys
(
option
).
forEach
(
function
(
opt
)
{
if
(
!
supported_options
[
opt
])
{
rejected_options
.
push
(
opt
);
}
});
if
(
rejected_options
.
length
)
{
throw
{
"
status
"
:
501
,
"
error
"
:
"
UnsupportedOptionError
"
,
"
reason
"
:
"
unsupported option
"
,
"
arguments
"
:
rejected_options
};
}
open_req
=
indexedDB
.
open
(
this
.
_database_name
);
return
new
Promise
(
function
(
resolve
,
reject
,
notify
)
{
open_req
.
onerror
=
function
()
{
if
(
open_req
.
result
)
{
open_req
.
result
.
close
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment