Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 969f7a3550294680c2b98390701958dc453b68aa 1 parent 751a6de
@grayt0r authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/dao.js
View
5 lib/dao.js
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.