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) || years < 1.5 && substitute($l.year, 1) ||
substitute($l.years, Math.round(years)); substitute($l.years, Math.round(years));
switch ($l.wordSeparator) { var separator = $l.wordSeparator || "";
case undefined: if ($l.wordSeparator === undefined) { separator = " "; }
var separator = " ";
break;
case null:
var separator = "";
break;
default:
var separator = $l.wordSeparator;
}
return $.trim([prefix, words, suffix].join(separator)); return $.trim([prefix, words, suffix].join(separator));
}, },
parse: function(iso8601) { parse: function(iso8601) {