Permalink
Browse files

Fixed a typo and a spec.

  • Loading branch information...
1 parent 15c47c7 commit 440bdadd3f2fd71c3c9401f1bdb51fe0fca8116d @poshboytl poshboytl committed Jul 23, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/timeago.js
  2. +2 −2 src/timeago.coffee
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-# Smart Time Ago v0.0.1
+# Smart Time Ago v0.0.2
# Copyright 2012, Terry Tai, Pragmatic.ly
# https://pragmatic.ly/
@@ -88,7 +88,7 @@ class TimeAgo
distanceOfTimeInWords: (dim) ->
#TODO support i18n.
- dis = Math.round(distanceInMinutes * 60) #distance in seconds
+ dis = Math.round(dim * 60) #distance in seconds
if dim <= 1
if dis <= 4

0 comments on commit 440bdad

Please sign in to comment.