Skip to content

Commit

Permalink
Merge pull request danielearwicker#25 from creately/clone-input-text
Browse files Browse the repository at this point in the history
Input data should be considered immutable
  • Loading branch information
thisunravisara authored Mar 12, 2019
2 parents 24e345d + 3ebf963 commit e2a3fd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@creately/carota",
"author": "Daniel Earwicker ([email protected])",
"description": "Simple, flexible rich text rendering/editing on HTML Canvas",
"version": "2.4.4",
"version": "2.4.5",
"repository": {
"type": "git",
"url": "https://github.com/danielearwicker/carota.git"
Expand Down
4 changes: 3 additions & 1 deletion src/doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ var prototype = node.derive({
}
}
} else {
runs = value;
runs = value.map(function (run) {
return Object.assign({}, run);
});
}

var self = this;
Expand Down

0 comments on commit e2a3fd9

Please sign in to comment.