From 47c562e265d71073abc8e8200487207d163fe8ca Mon Sep 17 00:00:00 2001 From: "f.symanowski" Date: Wed, 30 May 2018 09:16:40 +0200 Subject: [PATCH] Add truncated element as parameter to the callback function. --- trunk8.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk8.js b/trunk8.js index 1c61a8d..329a002 100644 --- a/trunk8.js +++ b/trunk8.js @@ -229,7 +229,7 @@ $.error('Invalid width "' + width + '".'); return; } - settings.onTruncate(); + settings.onTruncate(this); } methods = { @@ -387,6 +387,6 @@ tooltip: true, width: WIDTH.auto, parseHTML: false, - onTruncate: function () {} + onTruncate: function ($element) {} }; }));