From 70cc2c77550188b37a6e3d69d49b85a7e69fbfcf Mon Sep 17 00:00:00 2001 From: Cornel Raiu Date: Tue, 10 Jul 2018 13:55:39 +0300 Subject: [PATCH] fix initial value issue --- js/jquery.ThreeDots.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.ThreeDots.js b/js/jquery.ThreeDots.js index 0e0854a..a5e2a3c 100644 --- a/js/jquery.ThreeDots.js +++ b/js/jquery.ThreeDots.js @@ -286,7 +286,7 @@ var nr_fixed = num_rows(curr_this, true); // remember where it all began so that we can see if we ended up exactly where we started - var init_text_span = $(curr_text_span).text(); + var init_text_span = ($(curr_this).attr('threedots') === undefined)? $(curr_text_span).text() : $(curr_this).attr('threedots'); // preprocessor the_bisector(curr_this, curr_text_span, nr_fixed);