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

Commit 042249b6 by Sascha Depold

Merge branch 'bugfix/getterSetterPropertyInitialization' of https://github.com/t…

…andartsnl/sequelize into tandartsnl-bugfix/getterSetterPropertyInitialization
2 parents 25a4f4b3 95410597
Showing with 0 additions and 4 deletions
...@@ -342,10 +342,6 @@ module.exports = (function() { ...@@ -342,10 +342,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!