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

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
...@@ -224,6 +224,11 @@ module.exports = (function() { ...@@ -224,6 +224,11 @@ module.exports = (function() {
this.validators[attribute] = validators this.validators[attribute] = validators
} }
// RAG
DAO.prototype.toJSON = function() {
return this.values;
}
// private // private
var initAttributes = function(values) { var initAttributes = function(values) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!