Files
zulip/static/js
Steve Howell 7fd74c45d7 Clean up startup code for streams.
The startup code in subs.js used to intermingle data
stuff and UI stuff in a loop inside a called function,
which made the code hard to reason about.

Now there is a clear separation of concerns, with these methods
being called in succession:

    stream_data.initialize_from_page_params();
    stream_list.create_initial_sidebar_rows();

The first method was mostly extracted from subs.js, but I simplified
some things, like not needing to make a copy of the hashes
we were passed in, plus I now garbage collect email_dict.  Also,
the code path that initialize_from_page_params() mostly replaces
used to call create_sub(), which fired a trigger, but now it
just does data stuff.

Once the data structure is built up, it's a very simple matter
to build the initial sidebar rows, and that's what the second
method does.
2016-10-17 19:58:23 -07:00
..
2013-07-29 12:11:26 -04:00
2013-07-30 12:12:58 -04:00
2016-10-10 16:12:25 -07:00
2016-10-16 15:25:46 -07:00
2016-10-10 16:12:25 -07:00
2014-01-23 16:28:58 -05:00
2016-08-18 15:32:30 -07:00
2016-08-16 16:19:14 -07:00
2014-01-15 16:07:20 -05:00
2016-10-17 19:58:23 -07:00
2016-10-11 16:48:05 -07:00
2016-10-10 16:12:25 -07:00
2016-05-27 01:03:21 -07:00