Narrowed the wordSeparator logic [#105]

This commit is contained in:
Ryan McGeary 2012-12-27 11:45:54 -05:00
parent bd42f80c17
commit 47dc26620e

View file

@ -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) {