Cecil Westerhof schrieb:
> For the curious, I changed the code into:
>     temp        = result.comments[i].commentText.split("\n");
>     thisComment = [temp[0]];
>     for(j = 1; j < temp.length; ++j) {
>       thisComment.push(BR(), temp[j])
>     }
>     appendChildNodes(allCommentsDiv, commentDiv);

Theoretically, this could be simplified:

thisComment = zip(temp, repeat(BR()));

But for some reason this does not work:
http://groups.google.com/group/mochikit/browse_thread/thread/af7cc2d489a1c7ed

Has anybody an idea why this does not work?

The reason is NOT that this is not a flat list, since it is 
automatically flattended and I tried flattenArray(zip...)) as well.

-- Christoph

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to