Permalink
Browse files

Update the README.

  • Loading branch information...
1 parent dc97e48 commit ed39cd1d4aa6a6358d9243ff42c1c7d75a259de0 @poshboytl poshboytl committed Aug 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
@@ -44,7 +44,7 @@ By default Smart Time Ago will keep watching on the time elements with a class o
You can initialize the smart-time-ago in global like:
- $().timeago();
+ $('body').timeago();
It will watch all your relative time elements by only one TimeAgo instance.
@@ -65,7 +65,7 @@ However you can also create TimeAgo instance for every time element separately l
BTW if you need dynamic add the time element to your document without refreshing the page or you want to refresh the timeago manually. You might need call the refresh function to refresh the instance like:
- $().timeago('refresh');
+ $('.timeago').timeago('refresh');
Configuration

0 comments on commit ed39cd1

Please sign in to comment.