Skip to content

Commit

Permalink
optimized performance
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed May 23, 2013
1 parent 23451a8 commit c036524
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .npmignore
@@ -0,0 +1 @@
test
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion lib/bases/aggregateBase.js
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"author": "adrai",
"name": "cqrs-domain",
"version": "0.3.8",
"version": "0.3.9",
"private": false,
"main": "index.js",
"engines": {
Expand Down

0 comments on commit c036524

Please sign in to comment.