Fixes for Internet Explorer 7 and its strict JSON object modelling

This commit is contained in:
John Martin
2012-10-02 14:36:46 +01:00
parent 7cbaf4b264
commit 6ee9e98e5e
3 changed files with 8 additions and 8 deletions

View File

@@ -230,7 +230,7 @@ this.recline.Backend.ElasticSearch = this.recline.Backend.ElasticSearch || {};
var jqxhr = es.query(queryObj);
jqxhr.done(function(results) {
var out = {
total: results.hits.total,
total: results.hits.total
};
out.hits = _.map(results.hits.hits, function(hit) {
if (!('id' in hit._source) && hit._id) {