From 7ba0c76ef6fd48254fa46d4ec427326478bbfedf Mon Sep 17 00:00:00 2001 From: Ryan McGeary Date: Tue, 16 Feb 2010 07:49:41 -0500 Subject: [PATCH] Bug fix while checking for undefined attached data --- jquery.timeago.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.timeago.js b/jquery.timeago.js index 66cf48d..1b79a51 100644 --- a/jquery.timeago.js +++ b/jquery.timeago.js @@ -113,7 +113,7 @@ function prepareData(element) { element = $(element); - if (element.data("timeago") === undefined) { + if (!element.data("timeago")) { element.data("timeago", { datetime: $t.datetime(element) }); var text = $.trim(element.text()); if (text.length > 0) element.attr("title", text);