MS DH; add context to timeago events
This commit is contained in:
parent
9f05ac1f33
commit
0f0c033c26
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue