Merge pull request from borski/feature/updatefromdom

Adding $(el).timeago('updateFromDOM') function
This commit is contained in:
Ryan McGeary 2013-06-16 07:31:20 -07:00
commit 9dab7dbc5a

View file

@ -134,6 +134,10 @@
update: function(time){
$(this).data('timeago', { datetime: $t.parse(time) });
refresh.apply(this);
},
updateFromDOM: function(){
$(this).data('timeago', { datetime: $t.parse( $t.isTime(this) ? $(this).attr("datetime") : $(this).attr("title") ) });
refresh.apply(this);
}
};