From 0f0c033c268b6e73f5075382b37e1f36410c8f19 Mon Sep 17 00:00:00 2001 From: Dan Hansen Date: Thu, 2 Jun 2011 15:10:08 -0500 Subject: [PATCH] MS DH; add context to timeago events --- public/javascripts/widgets/timeago.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/javascripts/widgets/timeago.js b/public/javascripts/widgets/timeago.js index 142c46f4f..c46f872ab 100644 --- a/public/javascripts/widgets/timeago.js +++ b/public/javascripts/widgets/timeago.js @@ -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();