2017-03-18 16:59:32 +01:00
|
|
|
/*
|
|
|
|
|
|
|
|
This module has shims to help us break circular dependencies.
|
|
|
|
We eventually want to to move the actual implementations into
|
|
|
|
new modules. When we do this, you may need to fix node tests
|
|
|
|
that still refer to the old name.
|
|
|
|
*/
|
|
|
|
|
|
|
|
var narrow_state = {}; // global, should be made into module
|
|
|
|
narrow_state.set_compose_defaults = narrow.set_compose_defaults;
|
2017-03-18 17:41:47 +01:00
|
|
|
|
|
|
|
var compose_actions = {};
|
|
|
|
compose_actions.start = compose.start;
|
2017-03-18 17:55:11 +01:00
|
|
|
compose_actions.cancel = compose.cancel;
|
2017-03-18 18:10:37 +01:00
|
|
|
|
2017-03-18 18:29:20 +01:00
|
|
|
var hash_util = {};
|
|
|
|
hash_util.encodeHashComponent = hashchange.encodeHashComponent;
|
|
|
|
|
2017-03-18 18:10:37 +01:00
|
|
|
var compose_state = {};
|
|
|
|
compose_state.has_message_content = compose.has_message_content;
|