on master help sign in
Properly join Text
ec581a9Evan Czaplicki
libraries/Native/List.js+1
@@ -253,6 +253,7 @@ Elm.Native.List.make = function(elm) {
253 }
253 }
254
254
255 function join(sep, xss) {
255 function join(sep, xss) {
256+ if (sep.isText) return Utils.txt(toArray(xss).join(sep));
256 if (typeof sep === 'string') return toArray(xss).join(sep);
257 if (typeof sep === 'string') return toArray(xss).join(sep);
257 if (xss.ctor === '[]') return Nil;
258 if (xss.ctor === '[]') return Nil;
258 var s = toArray(sep);
259 var s = toArray(sep);