Skip to content

Commit

Permalink
feat: alias state.ToJson with state.toJson
Browse files Browse the repository at this point in the history
  • Loading branch information
y-lohse committed Jul 14, 2018
1 parent 9434a2f commit 297f0b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engine/StoryState.js
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,9 @@ export class StoryState{
ToJson(indented){
return JSON.stringify(this.jsonToken, null, (indented) ? 2 : 0);
}
toJson(indented){
return this.ToJson(indented);
}
LoadJson(jsonString){
this.jsonToken = JSON.parse(jsonString);
}
Expand Down

0 comments on commit 297f0b2

Please sign in to comment.