app.js 269 B

1234567891011
  1. (function (state) {
  2. var threads = Object.keys(state.threads || {}).map(renderThread);
  3. function renderThread (id) { return _.thread(state.threads[id]) }
  4. return $.h(".app",
  5. [ _.status(state)
  6. , $.h(".content", [_.form()].concat(threads.reverse())) ]);
  7. })