Skip to content

Commit

Permalink
fix responsive option resize handler calls
Browse files Browse the repository at this point in the history
  • Loading branch information
nzambello committed Oct 25, 2017
1 parent a55d1ef commit d208161
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ellipsed.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
_el.textContent = originalTexts[_i];
}

ellipsis(selector, rows, options);
ellipsis(selector, rows, _extends({}, options, { responsive: false }));
};

window.addEventListener('resize', function() {
Expand Down
2 changes: 1 addition & 1 deletion src/ellipsed.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function ellipsis(selector = '', rows = 1, options) {
el.textContent = originalTexts[i];
}

ellipsis(selector, rows, options);
ellipsis(selector, rows, { ...options, responsive: false });
};

window.addEventListener('resize', () => {
Expand Down

0 comments on commit d208161

Please sign in to comment.