Skip to content

Commit

Permalink
Add original value tracking to ContentNode
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdecker committed Aug 23, 2014
1 parent 35b196d commit 0528b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/handlebars/compiler/ast.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ var AST = {
ContentNode: function(string, locInfo) {
LocationInfo.call(this, locInfo);
this.type = "content";
this.string = string;
this.original = this.string = string;
},

HashNode: function(pairs, locInfo) {
Expand Down

2 comments on commit 0528b91

@jonschlinkert
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kpdecker
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI This is to support changes make string mutable. 84d646b Hopefully this makes things cleaner for all.

Please sign in to comment.