janmonschke/backbone-couchdb — pull request #35 by jnisenson (2012-01-31 18:10:20+00:00)
Title: Fix for "include_docs : true" when the view emits a null value 

This fix handles the case where include_docs is true and the view emits only the key and null. When the view value is null we check to see if the doc exists in the returned data (as it will when include_docs is true)

Example for a couchapp view with a complex key:
"by_test_type_date" : {
"map": "function (doc) { emit([doc.test_type, doc.created_at], null);}"
}