Add shim.js w/narrow_state global.

This commit is contained in:
Steve Howell
2017-03-18 08:59:32 -07:00
committed by Tim Abbott
parent 68e7a8a824
commit 35d38d62f3
4 changed files with 13 additions and 1 deletions

10
static/js/shim.js Normal file
View File

@@ -0,0 +1,10 @@
/*
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;