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

Commit 9cb959c2 by Mick Hansen

Remove addAttribute, not sure why it was left in

1 parent 9513151e
Showing with 0 additions and 8 deletions
...@@ -611,14 +611,6 @@ module.exports = (function() { ...@@ -611,14 +611,6 @@ module.exports = (function() {
return result return result
} }
DAO.prototype.addAttribute = function(attribute, value) {
if (this.booleanValues.length && this.booleanValues.indexOf(attribute) !== -1 && value != null) { // transform integer 0,1 into boolean
value = !!value
}
this[attribute] = value;
}
DAO.prototype.setValidators = function(attribute, validators) { DAO.prototype.setValidators = function(attribute, validators) {
this.validators[attribute] = validators this.validators[attribute] = validators
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!