Permalink
Browse files

Move the space between number and suffix to suffix setting.

  • Loading branch information...
1 parent 6a8ab11 commit a3ee02ea3d8deda701faf921bd854ea21015926b @poshboytl poshboytl committed Aug 7, 2012
Showing with 6 additions and 6 deletions.
  1. +1 −1 lib/locales/timeago.en.js
  2. +2 −2 lib/timeago.js
  3. +1 −1 src/locales/timeago.en.coffee
  4. +2 −2 src/timeago.coffee
View
2 lib/locales/timeago.en.js
@@ -21,7 +21,7 @@
over: "over",
almost: "almost"
},
- suffix: 'ago'
+ suffix: ' ago'
};
}).call(this);
View
4 lib/timeago.js
@@ -77,7 +77,7 @@
TimeAgo.prototype.timeAgoInWords = function(timeString) {
var absolutTime;
absolutTime = this.parse(timeString);
- return this.distanceOfTimeInWords(absolutTime) + (" " + this.options.lang.suffix);
+ return this.distanceOfTimeInWords(absolutTime) + (this.options.lang.suffix);
};
TimeAgo.prototype.parse = function(iso8601) {
@@ -174,7 +174,7 @@
over: "over",
almost: "almost"
},
- suffix: 'ago'
+ suffix: ' ago'
}
};
View
2 src/locales/timeago.en.coffee
@@ -17,4 +17,4 @@ $.fn.timeago.defaults.lang =
about: "about"
over: "over"
almost: "almost"
- suffix: "ago"
+ suffix: " ago"
View
4 src/timeago.coffee
@@ -65,7 +65,7 @@ class TimeAgo
timeAgoInWords: (timeString) ->
absolutTime = @parse(timeString)
- @distanceOfTimeInWords(absolutTime) + " #{@options.suffix}"
+ @distanceOfTimeInWords(absolutTime) + "#{@options.suffix}"
parse: (iso8601) ->
timeStr = $.trim(iso8601)
@@ -147,5 +147,5 @@ $.fn.timeago.defaults =
about: "about"
over: "over"
almost: "almost"
- suffix: 'ago'
+ suffix: ' ago'

0 comments on commit a3ee02e

Please sign in to comment.