zulip/frontend_tests/zjsunit
Steve Howell b965766f87 refactor: Call compose_fade without triggers.
We are trying to phase out the trigger-event way
of telling modules to do something.

In this case we not only remove the indirection
of the event handler, but we also get to remove
`compose_fade` from the `ui_init` startup sequence.

This also has us update `compose_fade` outside
the loop, although that's only a theoretical
improvement, since I don't think `peer_add` events
every actually include multiple streams.

To make the dispatch tests a little flatter, I
added a one-line change to zjsunit to add
`make_stub` to `global`.

To manually test:
    * have Aaron reply to Denmark (keep compose box open)
    * have Iago add Hamlet to Denmark
    * have Hamlet unsubscribe
2020-06-13 15:35:39 -07:00
..
bugdown_assert.js text: Fix some typos (most of them found and fixed by codespell). 2020-03-27 17:25:56 -07:00
finder.js js: Convert a.indexOf(…) !== -1 to a.includes(…). 2020-02-10 14:08:12 -08:00
handlebars.js tests: Compile Handlebars templates with source maps. 2020-02-18 07:38:46 -05:00
i18n.js js: Convert _.map(a, …) to a.map(…). 2020-02-10 14:08:12 -08:00
index.js refactor: Call compose_fade without triggers. 2020-06-13 15:35:39 -07:00
mdiff.js mdiff: Convert formatter, aliases from object to Map. 2020-05-26 23:33:40 -07:00
namespace.js zjsunit: Clear namespace more aggressively. 2020-02-27 10:21:36 -05:00
stub.js js: Automatically convert _.each to for…of. 2020-02-07 14:09:47 -08:00
zblueslip.js zblueslip: Simplify broken error message. 2020-04-24 18:24:12 -04:00
zjquery.js recent_topics: Only rerender when recent_topics is visible. 2020-06-09 22:08:31 -07:00