mirror of
https://github.com/scratchfoundation/jquery-timeago.git
synced 2024-11-27 09:45:38 -05:00
Bug fix while checking for undefined attached data
This commit is contained in:
parent
a7df538960
commit
7ba0c76ef6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue