Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
fix exception when tokens === null
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvonne Yip committed Nov 11, 2014
1 parent a25f6c5 commit a2149cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions paper-autogrow-textarea.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@

constrain: function(tokens) {
var _tokens;
tokens = tokens || [''];
// Enforce the min and max heights for a multiline input to avoid measurement
if (this.maxRows > 0 && tokens.length > this.maxRows) {
_tokens = tokens.slice(0, this.maxRows);
Expand Down

0 comments on commit a2149cd

Please sign in to comment.