Skip to content

Commit

Permalink
Issue #30 Exception when entering first character
Browse files Browse the repository at this point in the history
  • Loading branch information
danielearwicker committed Jan 14, 2015
1 parent e1bac77 commit 36cb7c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ var prototype = node.derive({
.per(this.runs, this)
.first();
text = [
Object.create(sampleRun, { text: { value: text } })
sampleRun ? Object.create(sampleRun, { text: { value: text } }) : { text: text }
];
} else if (!Array.isArray(text)) {
text = [{ text: text }];
Expand Down

0 comments on commit 36cb7c7

Please sign in to comment.