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
Aurélien Vermylen
jio
Commits
99577d27
Commit
99577d27
authored
Apr 17, 2014
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove localstorage allDocs key property
parent
65a22f7f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1 addition
and
38 deletions
+1
-38
src/jio.storage/localstorage.js
src/jio.storage/localstorage.js
+1
-3
test/jio.storage/indexstorage.tests.js
test/jio.storage/indexstorage.tests.js
+0
-8
test/jio.storage/localstorage.tests.js
test/jio.storage/localstorage.tests.js
+0
-9
test/jio.storage/querystorage.tests.js
test/jio.storage/querystorage.tests.js
+0
-4
test/jio.storage/splitstorage.tests.js
test/jio.storage/splitstorage.tests.js
+0
-5
test/queries/key-localstorage.tests.js
test/queries/key-localstorage.tests.js
+0
-9
No files found.
src/jio.storage/localstorage.js
View file @
99577d27
...
...
@@ -424,7 +424,6 @@
if
(
path_re
.
test
(
i
))
{
row
=
{
value
:
{}
};
row
.
id
=
i
.
split
(
'
/
'
).
slice
(
-
1
)[
0
];
row
.
key
=
row
.
id
;
if
(
options
.
include_docs
)
{
row
.
doc
=
JSON
.
parse
(
this
.
_storage
.
getItem
(
i
));
}
...
...
@@ -458,8 +457,7 @@
exec
(
document_list
,
options
).
then
(
function
()
{
document_list
=
document_list
.
map
(
function
(
value
)
{
var
o
=
{
"
id
"
:
value
.
_id
,
"
key
"
:
value
.
_id
"
id
"
:
value
.
_id
};
if
(
options
.
include_docs
===
true
)
{
o
.
doc
=
document_object
[
value
.
_id
];
...
...
test/jio.storage/indexstorage.tests.js
View file @
99577d27
...
...
@@ -341,35 +341,27 @@
"
total_rows
"
:
8
,
"
rows
"
:
[{
"
id
"
:
"
A
"
,
"
key
"
:
"
A
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
B
"
,
"
key
"
:
"
B
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
C
"
,
"
key
"
:
"
C
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
D
"
,
"
key
"
:
"
D
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
b
"
,
"
key
"
:
"
b
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
ce
"
,
"
key
"
:
"
ce
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
dee
"
,
"
key
"
:
"
dee
"
,
"
value
"
:
{}
},
{
"
id
"
:
shared
.
created_document_id
,
"
key
"
:
shared
.
created_document_id
,
"
value
"
:
{}
}]
},
...
...
test/jio.storage/localstorage.tests.js
View file @
99577d27
...
...
@@ -539,19 +539,15 @@
"
data
"
:
{
"
rows
"
:
[{
"
id
"
:
"
a
"
,
"
key
"
:
"
a
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
b
"
,
"
key
"
:
"
b
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
c
"
,
"
key
"
:
"
c
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
d
"
,
"
key
"
:
"
d
"
,
"
value
"
:
{}
}],
"
total_rows
"
:
4
...
...
@@ -591,7 +587,6 @@
"
title
"
:
"
one
"
},
"
id
"
:
"
a
"
,
"
key
"
:
"
a
"
,
"
value
"
:
{
"
date
"
:
o
.
date_a
.
toJSON
(),
"
title
"
:
"
one
"
...
...
@@ -603,7 +598,6 @@
"
title
"
:
"
two
"
},
"
id
"
:
"
d
"
,
"
key
"
:
"
d
"
,
"
value
"
:
{
"
date
"
:
o
.
date_b
.
toJSON
(),
"
title
"
:
"
two
"
...
...
@@ -615,7 +609,6 @@
"
title
"
:
"
two
"
},
"
id
"
:
"
b
"
,
"
key
"
:
"
b
"
,
"
value
"
:
{
"
date
"
:
o
.
date_a
.
toJSON
(),
"
title
"
:
"
two
"
...
...
@@ -643,11 +636,9 @@
"
data
"
:
{
"
rows
"
:
[{
"
id
"
:
"
d
"
,
"
key
"
:
"
d
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
b
"
,
"
key
"
:
"
b
"
,
"
value
"
:
{}
}],
"
total_rows
"
:
2
...
...
test/jio.storage/querystorage.tests.js
View file @
99577d27
...
...
@@ -586,22 +586,18 @@
"
rows
"
:
[
{
"
id
"
:
"
a
"
,
"
key
"
:
"
a
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
b
"
,
"
key
"
:
"
b
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
c
"
,
"
key
"
:
"
c
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
d
"
,
"
key
"
:
"
d
"
,
"
value
"
:
{}
}
],
...
...
test/jio.storage/splitstorage.tests.js
View file @
99577d27
...
...
@@ -936,23 +936,18 @@
"
total_rows
"
:
5
,
"
rows
"
:
[{
"
id
"
:
"
doc0
"
,
"
key
"
:
"
doc0
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
doc1
"
,
"
key
"
:
"
doc1
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
doc2
"
,
"
key
"
:
"
doc2
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
doc3
"
,
"
key
"
:
"
doc3
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
doc4
"
,
"
key
"
:
"
doc4
"
,
"
value
"
:
{}
}]
},
"
AllDocs with document ids only
"
);
...
...
test/queries/key-localstorage.tests.js
View file @
99577d27
...
...
@@ -90,19 +90,15 @@
"
data
"
:
{
"
rows
"
:
[{
"
id
"
:
"
a
"
,
"
key
"
:
"
a
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
b
"
,
"
key
"
:
"
b
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
c
"
,
"
key
"
:
"
c
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
d
"
,
"
key
"
:
"
d
"
,
"
value
"
:
{}
}],
"
total_rows
"
:
4
...
...
@@ -142,7 +138,6 @@
"
title
"
:
"
one
"
},
"
id
"
:
"
a
"
,
"
key
"
:
"
a
"
,
"
value
"
:
{
"
date
"
:
o
.
date_a
.
toJSON
(),
"
title
"
:
"
one
"
...
...
@@ -154,7 +149,6 @@
"
title
"
:
"
two
"
},
"
id
"
:
"
d
"
,
"
key
"
:
"
d
"
,
"
value
"
:
{
"
date
"
:
o
.
date_b
.
toJSON
(),
"
title
"
:
"
two
"
...
...
@@ -166,7 +160,6 @@
"
title
"
:
"
two
"
},
"
id
"
:
"
b
"
,
"
key
"
:
"
b
"
,
"
value
"
:
{
"
date
"
:
o
.
date_a
.
toJSON
(),
"
title
"
:
"
two
"
...
...
@@ -196,11 +189,9 @@
"
data
"
:
{
"
rows
"
:
[{
"
id
"
:
"
a
"
,
"
key
"
:
"
a
"
,
"
value
"
:
{}
},
{
"
id
"
:
"
b
"
,
"
key
"
:
"
b
"
,
"
value
"
:
{}
}],
"
total_rows
"
:
2
...
...
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