Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Stefane Fermigier
jio
Commits
419f0dde
Commit
419f0dde
authored
Aug 13, 2014
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add storage type check in rangestorage
parent
06aa3fa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/jio.storage/rangestorage.js
src/jio.storage/rangestorage.js
+10
-0
No files found.
src/jio.storage/rangestorage.js
View file @
419f0dde
...
@@ -18,6 +18,16 @@
...
@@ -18,6 +18,16 @@
* @constructor
* @constructor
*/
*/
function
RangeStorage
(
spec
)
{
function
RangeStorage
(
spec
)
{
if
(
spec
.
sub_storage
===
undefined
)
{
throw
new
TypeError
(
"
RangeStorage 'sub storage' description
"
+
"
must be a non-empty string
"
);
}
if
(
spec
.
sub_storage
.
type
===
"
indexeddb
"
||
spec
.
sub_storage
.
type
===
"
dav
"
)
{
throw
new
TypeError
(
"
RangeStorage 'sub storage'
"
+
spec
.
sub_storage
.
type
+
"
unsupport
"
);
}
this
.
_sub_storage
=
spec
.
sub_storage
;
this
.
_sub_storage
=
spec
.
sub_storage
;
this
.
_key_schema
=
spec
.
key_schema
;
this
.
_key_schema
=
spec
.
key_schema
;
}
}
...
...
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