backbone-db
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -51,2 +51,10 @@ var Backbone = require('backbone'); | ||
// convert Objects in where options (in case they are e.g. MongoDB ObjectIDs) | ||
_.each(filterOptions.where, function(val, key) { | ||
// hack to check if val can be casted to string | ||
if (_.isObject(val) && val.toString().indexOf('[') === -1) { | ||
filterOptions.where[key] = val.toString(); | ||
} | ||
}); | ||
var filteredModels = []; | ||
@@ -53,0 +61,0 @@ var jq = jsonquery(filterOptions.where); |
{ | ||
"name": "backbone-db", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "Key-Value database storage interface, localStorage and in-process implementations", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
20172
645