{"action":"closed","issue":{"url":"https://api.github.com/repos/hustcc/timeago.js/issues/157","repository_url":"https://api.github.com/repos/hustcc/timeago.js","labels_url":"https://api.github.com/repos/hustcc/timeago.js/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/hustcc/timeago.js/issues/157/comments","events_url":"https://api.github.com/repos/hustcc/timeago.js/issues/157/events","html_url":"https://github.com/hustcc/timeago.js/issues/157","id":332037906,"node_id":"MDU6SXNzdWUzMzIwMzc5MDY=","number":157,"title":"Docs are unclear to me","user":{"login":"ppetree","id":991633,"node_id":"MDQ6VXNlcjk5MTYzMw==","avatar_url":"https://avatars0.githubusercontent.com/u/991633?v=4","gravatar_id":"","url":"https://api.github.com/users/ppetree","html_url":"https://github.com/ppetree","followers_url":"https://api.github.com/users/ppetree/followers","following_url":"https://api.github.com/users/ppetree/following{/other_user}","gists_url":"https://api.github.com/users/ppetree/gists{/gist_id}","starred_url":"https://api.github.com/users/ppetree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppetree/subscriptions","organizations_url":"https://api.github.com/users/ppetree/orgs","repos_url":"https://api.github.com/users/ppetree/repos","events_url":"https://api.github.com/users/ppetree/events{/privacy}","received_events_url":"https://api.github.com/users/ppetree/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-13T15:06:14Z","updated_at":"2018-06-20T09:31:40Z","closed_at":"2018-06-20T09:31:40Z","author_association":"NONE","body":"I've read the docs and viewed the demo code.\r\n\r\nIf I understand this correctly, the times that I need rendered are wrapped in <time></time> tags as in this example:\r\n`<time class=\"strong single\">when you opened the page</time>`\r\n\r\nAnd to render timeago on a single element you call\r\n`timeago().render($('.single'));`\r\n\r\nWhat I fail to understand is how to get timeago to update on all elements of type <time> and especially those that are dynamically added as you would find in any feed. Do you have to append the new element to the nodes array?\r\n\r\n```\r\nfunction start_timeago(native) {\r\n  var nodes = [];\r\n\tnodes = $('.timeago time');\r\n\ttimeago().render(nodes);\r\n}\r\n```\r\n\r\nAlso, it doesn't look as though it can calculate timeago for divs with varying times (again, as you would find in a feed)."}}
{"actor":{"display_login":"hustcc"}}