Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$.timeago.settings.cutoff Ajax after notworking #341

Closed
fatih108 opened this issue Jul 4, 2018 · 0 comments
Closed

$.timeago.settings.cutoff Ajax after notworking #341

fatih108 opened this issue Jul 4, 2018 · 0 comments

Comments

@fatih108
Copy link

fatih108 commented Jul 4, 2018

One minute after

Uncaught TypeError: Cannot read property 'length' of undefined
at HTMLTimeElement.refresh (jquery.timeago.js:199)
at proxy (jquery-3.3.1.js:10268)

if (!isNaN(data.datetime)) {
if ( $s.cutoff === 0 || Math.abs(distance(data.datetime)) < $s.cutoff) {
$(this).text(inWords(data.datetime));
} else {
if ($(this).attr('title').length > 0) { <<<<<<<<<<<<<<<<<<< Red Underline
$(this).text($(this).attr('title'));
}
}
}

@fatih108 fatih108 closed this as completed Jul 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant