Skip to content

Commit

Permalink
Fixed missing stateToJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
jazmit committed Apr 28, 2017
1 parent 916af0c commit f56d875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pux.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function eventToString (a) {
var name = a.constructor.name.match(/(String|Number|Boolean)/) ? a : a.constructor.name;
var str = [name];
if (a.constructor.name === 'Object') {
return JSON.stringify(stateToJSON(a));
return stateToString(a);
}
Object.keys(a).forEach(function (key) {
if (key[0] === 'v' && key[4] === 'e') {
Expand Down

0 comments on commit f56d875

Please sign in to comment.