Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio_mebibou
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
Alexandra Rogova
jio_mebibou
Commits
b6ed577f
Commit
b6ed577f
authored
Sep 20, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localstorage.js select_list '_id' is forgotten - fixed
parent
be46d41b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/jio.storage/localstorage.js
src/jio.storage/localstorage.js
+8
-3
No files found.
src/jio.storage/localstorage.js
View file @
b6ed577f
...
...
@@ -397,7 +397,7 @@
* @param {Object} options The command options
*/
LocalStorage
.
prototype
.
allDocs
=
function
(
command
,
param
,
options
)
{
var
i
,
row
,
path_re
,
rows
,
document_list
,
document_object
;
var
i
,
row
,
path_re
,
rows
,
document_list
,
document_object
,
delete_id
;
param
.
unused
=
true
;
rows
=
[];
document_list
=
[];
...
...
@@ -434,7 +434,10 @@
}
}
options
.
select_list
=
options
.
select_list
||
[];
options
.
select_list
.
push
(
"
_id
"
);
if
(
options
.
select_list
.
indexOf
(
"
_id
"
)
===
-
1
)
{
options
.
select_list
.
push
(
"
_id
"
);
delete_id
=
true
;
}
if
(
options
.
include_docs
===
true
)
{
document_object
=
{};
document_list
.
forEach
(
function
(
meta
)
{
...
...
@@ -452,7 +455,9 @@
o
.
doc
=
document_object
[
value
.
_id
];
delete
document_object
[
value
.
_id
];
}
delete
value
.
_id
;
if
(
delete_id
)
{
delete
value
.
_id
;
}
o
.
value
=
value
;
return
o
;
});
...
...
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