Skip to content

Commit

Permalink
faster toJSON function
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed May 24, 2013
1 parent c036524 commit 24f85b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/bases/aggregateBase.js
Expand Up @@ -25,9 +25,10 @@ Aggregate.prototype = {
},

toJSON: function() {
var parse = JSON.deserialize || JSON.parse;
var json = parse(JSON.stringify(this.attributes));
return json;
// var parse = JSON.deserialize || JSON.parse;
// var json = parse(JSON.stringify(this.attributes));
// return json;
return _.clone(this.attributes);
},

toEvent: function(name, data) {
Expand Down

0 comments on commit 24f85b7

Please sign in to comment.