Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Commit

Permalink
Query the element, not scope
Browse files Browse the repository at this point in the history
  • Loading branch information
bakape committed Dec 3, 2014
1 parent e3d65c3 commit 1844cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function model_link(key) {

function renderRelativeTime(){
if (oneeSama.rTime){
var $time = this.$('header').find('time').first();
var $time = this.$el.find('time').first();
var t = date_from_time_el($time[0]).getTime();
setInterval(function(){
$time.html(oneeSama.relative_time(t, new Date().getTime()));
Expand Down

0 comments on commit 1844cbf

Please sign in to comment.