(doc)
| 232 | } |
| 233 | |
| 234 | function fixKeys(doc) { |
| 235 | if (doc) { |
| 236 | var ret = {}; |
| 237 | for (var key in doc) { |
| 238 | if (doc.hasOwnProperty(key)) { |
| 239 | ret[decodeText(key)] = doc[key]; |
| 240 | } |
| 241 | } |
| 242 | return ret; |
| 243 | } else { |
| 244 | return doc; |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | function fixAllKeys(docs) { |
| 249 | if (docs && docs.length) { |
no test coverage detected