Skip to content
Snippets Groups Projects
Commit 0f0c033c authored by Dan Hansen's avatar Dan Hansen
Browse files

MS DH; add context to timeago events

parent 9f05ac1f
No related branches found
No related tags found
No related merge requests found
......@@ -6,8 +6,8 @@
Diaspora.widgets.add("timeago", function() {
this.selector = "abbr.timeago";
this.start = function() {
Diaspora.widgets.subscribe("stream/scrolled", this.updateTimeAgo);
Diaspora.widgets.subscribe("stream/reloaded", this.updateTimeAgo);
Diaspora.widgets.subscribe("stream/scrolled", this.updateTimeAgo, this);
Diaspora.widgets.subscribe("stream/reloaded", this.updateTimeAgo, this);
if(this.timeAgoElement().length) {
this.updateTimeAgo();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment