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

Commit 79c364db by Mick Hansen

might aswell not loop

1 parent 78113233
Showing with 1 additions and 5 deletions
...@@ -178,11 +178,7 @@ module.exports = (function() { ...@@ -178,11 +178,7 @@ module.exports = (function() {
}) })
}) })
for (var attribute in attributeManipulation) { Object.defineProperties(this.DAO.prototype, attributeManipulation)
if (attributeManipulation.hasOwnProperty(attribute)) {
Object.defineProperty(this.DAO.prototype, attribute, attributeManipulation[attribute])
}
}
this.DAO.prototype.attributes = Object.keys(this.DAO.prototype.rawAttributes); this.DAO.prototype.attributes = Object.keys(this.DAO.prototype.rawAttributes);
this.DAO.prototype.booleanValues = [] this.DAO.prototype.booleanValues = []
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!