From 016b8badac77182bdff257886ca92e0c8f472fdf Mon Sep 17 00:00:00 2001 From: melloware Date: Mon, 2 Nov 2020 07:46:49 -0500 Subject: [PATCH] Fix #363: Replace jQuery deprecated methods trim and isFunction and proxy --- jquery.timeago.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.timeago.js b/jquery.timeago.js index 79dce4d1..c0e66e4f 100644 --- a/jquery.timeago.js +++ b/jquery.timeago.js @@ -141,7 +141,7 @@ var functions = { init: function() { functions.dispose.call(this); - var refresh_el = $.proxy(refresh, this); + var refresh_el = refresh.bind(this); refresh_el(); var $s = $t.settings; if ($s.refreshMillis > 0) {