Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.
3 changes: 3 additions & 0 deletions app-pouchdb-database-behavior.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@
* completed, or rejects with any unhandled error.
*/
_put: function(path, value, doc) {
if (typeof doc === 'undefined') {
doc = value;
}
if (this.upsert) {
return this._upsert(path, value, doc);
} else {
Expand Down
1 change: 0 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "app-pouchdb",
"version": "2.0.0",
"authors": [
"The Polymer Authors"
],
Expand Down