不要怂,就是干,撸起袖子干!

Commit 30089d94 by Sascha Depold

don't use Utils._.map for iteration over objects

1 parent 5dfd4c86
Showing with 3 additions and 1 deletions
......@@ -266,7 +266,9 @@ module.exports = (function() {
var self = this
// add all passed values to the dao and store the attribute names in this.attributes
Utils._.map(values, function(value, key) { self.addAttribute(key, value) })
for (var key in values) {
this.addAttribute(key, values[key])
}
// set id to null if not passed as value
// a newly created dao has no id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!