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

Commit 7b3922ed by Sascha Depold

Merge branch 'master' into milestones/2.0.0

2 parents 300c531f 042249b6
Showing with 0 additions and 4 deletions
...@@ -339,10 +339,6 @@ module.exports = (function() { ...@@ -339,10 +339,6 @@ module.exports = (function() {
} }
DAO.prototype.addAttribute = function(attribute, value) { DAO.prototype.addAttribute = function(attribute, value) {
if (typeof this.dataValues[attribute] !== 'undefined') {
return
}
if (this.booleanValues.length && this.booleanValues.indexOf(attribute) !== -1 && value !== undefined) { // transform integer 0,1 into boolean if (this.booleanValues.length && this.booleanValues.indexOf(attribute) !== -1 && value !== undefined) { // transform integer 0,1 into boolean
value = !!value value = !!value
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!