Commit 86c22afe authored by Tristan Cavelier's avatar Tristan Cavelier

indexstorage.js: index "_id" only instead of all string starting with "_"

parent 15c81a44
......@@ -232,7 +232,9 @@
for (k in meta) {
if (meta.hasOwnProperty(k)) {
if (underscored_meta_re.test(k)) {
needed_meta[k] = meta[k];
if (k === "_id") {
needed_meta[k] = meta[k];
}
} else if (that._indexing_object[k]) {
needed_meta[k] = meta[k];
ok = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment