Properly join Text
commitec581a9ef10e68ca355d3c322802f08b6c880ce1
authorEvan Czaplicki <info@elm-lang.org>
dateThu 10 Oct 2013, 14:29 (13 years ago)
parent4a914a4
libraries/Native/List.js+1
@@ -253,6 +253,7 @@ Elm.Native.List.make = function(elm) {
253253 }
254254
255255 function join(sep, xss) {
256+ if (sep.isText) return Utils.txt(toArray(xss).join(sep));
256257 if (typeof sep === 'string') return toArray(xss).join(sep);
257258 if (xss.ctor === '[]') return Nil;
258259 var s = toArray(sep);