Skip to content

Commit

Permalink
Fix Token.cloneElement
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevils committed Sep 30, 2015
1 parent 86b8065 commit f936821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elements/Token.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default class Token extends Element {
* @returns {Element}
*/
cloneElement() {
return new Token(this._type, this._value);
return new Token(this._type, this._value, this._sourceCode);
}
}

Expand Down

0 comments on commit f936821

Please sign in to comment.