Skip to content

Commit

Permalink
clone input on resource create
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-scherzinger committed Jan 23, 2017
1 parent dce46dd commit b54b173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/Resource.js
Expand Up @@ -27,7 +27,7 @@ export default class Resource {
*/
constructor(resource, traversal) {
this.dirty = false;
this.resource = halfred.parse(resource);
this.resource = halfred.parse(JSON.parse(JSON.stringify(resource)));

/**
* Global {@link EventEmitter}.
Expand Down

0 comments on commit b54b173

Please sign in to comment.