Skip to content

Commit

Permalink
Added attribute 'id' to mirrored textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
markusgut committed Mar 7, 2014
1 parent 1940d59 commit c048965
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jquery.autosize.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
var
defaults = {
className: 'autosizejs',
id: 'autosizejs',
append: '',
callback: false,
resizeDelay: 10,
Expand Down Expand Up @@ -120,6 +121,7 @@

mirrored = ta;
mirror.className = options.className;
mirror.id = options.id;
maxHeight = parseInt($ta.css('maxHeight'), 10);

// mirror is a duplicate textarea located off-screen that
Expand Down

0 comments on commit c048965

Please sign in to comment.