node tests: Use get_on_handler in stream_list.js.

This commit is contained in:
Steve Howell
2017-07-06 09:23:06 -04:00
parent 6a8fa55521
commit 38e3d2fc11

View File

@@ -252,10 +252,8 @@ function initialize_stream_data() {
stream_list.initialize();
function activate_filter(filter) {
var data = {
filter: filter,
};
$(document).trigger($.Event('narrow_activated.zulip', data));
var handler = $(document).get_on_handler('narrow_activated.zulip');
handler({filter: filter});
}
var filter;