Commit Graph

7 Commits

Author SHA1 Message Date
rr- e93af8b577 client/events: add experimental EventTarget 2016-06-13 20:11:17 +02:00
rr- 2a4241641c client/events: improve event dispatching
This commit introduces timer-less retry system:

1. Any change to URL is going to stop listening to any messages.
2. If a message is sent and there's no handler that could pick it up,
   the message gets enqueued.
3. The message is sent again to the first handler that attaches itself
   to given event type.

While in theory this is full of holes (no control over the first
handler), in practice, it works quite well.

Additionally, views.listenToMessages was attaching to completely wrong
DOM node; this commit fixes this as well.
2016-05-11 23:47:50 +02:00
rr- 27cce56054 client/tags: add tag category editing 2016-05-10 13:26:17 +02:00
rr- b7a67fc01c views/paging: add endless pager 2016-04-13 00:27:36 +02:00
rr- d3979d63dc client/paging: notify about empty results 2016-04-12 18:25:08 +02:00
rr- 2e1823b708 client/views: replace inheritance with composition 2016-04-09 22:23:24 +02:00
rr- 8a1140eff6 client/api: convert messages to events 2016-04-08 09:48:47 +02:00