Introduce compose_fade.initialize().

This commit is contained in:
Steve Howell 2017-05-24 13:30:32 -07:00
parent ccc2451b93
commit 4d6ca1ab70
2 changed files with 3 additions and 2 deletions

View File

@ -256,14 +256,14 @@ exports.update_rendered_message_groups = function (message_groups, get_element)
});
};
$(function () {
exports.initialize = function () {
$(document).on('peer_subscribe.zulip', function () {
exports.update_faded_users();
});
$(document).on('peer_unsubscribe.zulip', function () {
exports.update_faded_users();
});
});
};
return exports;

View File

@ -255,6 +255,7 @@ $(function () {
activity.initialize();
emoji.initialize();
hotspots.initialize();
compose_fade.initialize();
});