From d208161bcf0db78e1d0f1221ae5859d0b02d8611 Mon Sep 17 00:00:00 2001 From: nzambello Date: Wed, 25 Oct 2017 16:20:31 +0200 Subject: [PATCH] fix responsive option resize handler calls --- lib/ellipsed.js | 2 +- src/ellipsed.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ellipsed.js b/lib/ellipsed.js index 5220d66..562b6d6 100644 --- a/lib/ellipsed.js +++ b/lib/ellipsed.js @@ -123,7 +123,7 @@ _el.textContent = originalTexts[_i]; } - ellipsis(selector, rows, options); + ellipsis(selector, rows, _extends({}, options, { responsive: false })); }; window.addEventListener('resize', function() { diff --git a/src/ellipsed.js b/src/ellipsed.js index 484d5ea..a3b7896 100644 --- a/src/ellipsed.js +++ b/src/ellipsed.js @@ -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', () => {