Commit 904923d6 authored by Tristan Cavelier's avatar Tristan Cavelier

replicatestorage.js allodcs does pass options fix

parent 5753034c
......@@ -394,10 +394,11 @@
};
ReplicateStorage.prototype.allDocs = function (command, param, option) {
/*jslint unparam: true */
var promise_list = [], index, length = this._storage_list.length;
for (index = 0; index < length; index += 1) {
promise_list[index] =
command.storage(this._storage_list[index]).allDocs(param, option);
command.storage(this._storage_list[index]).allDocs(option);
}
sequence([function () {
return last(promise_list);
......
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