Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

really fixes #16

  • Loading branch information...
commit d4ad3f44dcae28c995945105d9015d9ca1e8fba1 1 parent f74ba9c
@janmonschke janmonschke authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  backbone-couchdb.coffee
  2. +1 −1  backbone-couchdb.js
View
2  backbone-couchdb.coffee
@@ -57,7 +57,7 @@ Backbone.couch_connector = con =
coll.listen_to_changes() if coll.db.changes or @config.global_changes
if coll.db.view?
_view = coll.db.view
- keys = coll.db.keys ? {}
+ keys = coll.db.keys ? []
@helpers.make_db().view "#{@config.ddoc_name}/#{_view}",
keys : keys
View
2  backbone-couchdb.js
@@ -68,7 +68,7 @@
}
if (coll.db.view != null) {
_view = coll.db.view;
- keys = (_ref = coll.db.keys) != null ? _ref : {};
+ keys = (_ref = coll.db.keys) != null ? _ref : [];
}
}
return this.helpers.make_db().view("" + this.config.ddoc_name + "/" + _view, {
Please sign in to comment.
Something went wrong with that request. Please try again.