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

Commit 969f7a35 by Ross Grayton

Added toJSON method to DAO object so it behaves with backbone.js

1 parent 751a6de3
Showing with 5 additions and 0 deletions
......@@ -223,6 +223,11 @@ module.exports = (function() {
DAO.prototype.setValidators = function(attribute, validators) {
this.validators[attribute] = validators
}
// RAG
DAO.prototype.toJSON = function() {
return this.values;
}
// private
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!