mirror of https://github.com/zulip/zulip.git
Avoid monkeypatching stream_data object.
(imported from commit 4755cf44736190b566645a83a7fc576d3c8451cb)
This commit is contained in:
parent
0202ca0261
commit
3e259e028b
|
@ -10,11 +10,16 @@
|
|||
add_dependencies({
|
||||
_: 'third/underscore/underscore.js',
|
||||
util: 'js/util.js',
|
||||
Dict: 'js/dict.js',
|
||||
stream_data: 'js/stream_data.js'
|
||||
Dict: 'js/dict.js'
|
||||
});
|
||||
|
||||
var stream_data = global.stream_data;
|
||||
var stream_data = require('js/stream_data.js');
|
||||
|
||||
stream_data = {
|
||||
canonicalized_name: stream_data.canonicalized_name
|
||||
};
|
||||
set_global('stream_data', stream_data);
|
||||
|
||||
var Dict = global.Dict;
|
||||
var unread = require('js/unread.js');
|
||||
var assert = require('assert');
|
||||
|
|
Loading…
Reference in New Issue