webpro/dyson — pull request #27 by ricardohbin (2014-11-26 13:52:28+00:00)
Title: Fixing lodash/underscore bug with templates that use length field

There's a known bug in some underscore functions that doesn't works with fields "length" (More details here: https://github.com/jashkenas/underscore/issues/1590).

Dyson used `_.each` to parse the templates, so if we had a template with field called **length**, it returns an empty response.

To simulate this behavior, just add it to some template.
```javascript
module.exports = {
path: "/bug",
template: {
"id": 5,
"width": 10,
"length": 10
}
}
```

This PR fix this, substituing `_.each` for vanilla javascript object iteration