Skip to content

Commit

Permalink
removed undocumented argument, doubtful it was ever used by anyone.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmoore committed Jul 25, 2016
1 parent b7f7306 commit d778583
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/autosize.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ try {
};
}

function assign(ta, {setOverflowX = true, setOverflowY = true} = {}) {
function assign(ta) {
if (!ta || !ta.nodeName || ta.nodeName !== 'TEXTAREA' || set.has(ta)) return;

let heightOffset = null;
Expand Down Expand Up @@ -73,9 +73,7 @@ function assign(ta, {setOverflowX = true, setOverflowY = true} = {}) {

overflowY = value;

if (setOverflowY) {
ta.style.overflowY = value;
}
ta.style.overflowY = value;

resize();
}
Expand Down Expand Up @@ -187,11 +185,8 @@ function assign(ta, {setOverflowX = true, setOverflowY = true} = {}) {
ta.addEventListener('input', update, false);
ta.addEventListener('autosize:update', update, false);
set.add(ta);

if (setOverflowX) {
ta.style.overflowX = 'hidden';
ta.style.wordWrap = 'break-word';
}
ta.style.overflowX = 'hidden';
ta.style.wordWrap = 'break-word';

init();
}
Expand Down

0 comments on commit d778583

Please sign in to comment.