Permalink
Browse files

optimized performance

  • Loading branch information...
1 parent 23451a8 commit c0365241ecbca0cd384b7205db677e5b68399dd7 @adrai committed May 23, 2013
Showing with 9 additions and 2 deletions.
  1. +1 −0 .npmignore
  2. +4 −0 README.md
  3. +3 −1 lib/bases/aggregateBase.js
  4. +1 −1 package.json
View
@@ -0,0 +1 @@
+test
View
@@ -76,6 +76,10 @@ See [tests](https://github.com/adrai/node-cqrs-domain/tree/master/test) for deta
# Release Notes
+## v0.3.9
+
+- optimized performance a little
+
## v0.3.8
- updated eventstore package
@@ -25,7 +25,9 @@ Aggregate.prototype = {
},
toJSON: function() {
- return _.clone(this.attributes, true);
+ var parse = JSON.deserialize || JSON.parse;
+ var json = parse(JSON.stringify(this.attributes));
+ return json;
},
toEvent: function(name, data) {
View
@@ -1,7 +1,7 @@
{
"author": "adrai",
"name": "cqrs-domain",
- "version": "0.3.8",
+ "version": "0.3.9",
"private": false,
"main": "index.js",
"engines": {

0 comments on commit c036524

Please sign in to comment.