mirror of
https://github.com/scratchfoundation/jquery-timeago.git
synced 2024-11-27 09:45:38 -05:00
Narrowed the wordSeparator logic [#105]
This commit is contained in:
parent
bd42f80c17
commit
47dc26620e
1 changed files with 2 additions and 10 deletions
|
@ -86,16 +86,8 @@
|
|||
years < 1.5 && substitute($l.year, 1) ||
|
||||
substitute($l.years, Math.round(years));
|
||||
|
||||
switch ($l.wordSeparator) {
|
||||
case undefined:
|
||||
var separator = " ";
|
||||
break;
|
||||
case null:
|
||||
var separator = "";
|
||||
break;
|
||||
default:
|
||||
var separator = $l.wordSeparator;
|
||||
}
|
||||
var separator = $l.wordSeparator || "";
|
||||
if ($l.wordSeparator === undefined) { separator = " "; }
|
||||
return $.trim([prefix, words, suffix].join(separator));
|
||||
},
|
||||
parse: function(iso8601) {
|
||||
|
|
Loading…
Reference in a new issue