mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +00:00
dict: Make copying Dict constructor a class constructor method
(imported from commit 7bd5f6029c1290036a47688cf2b80f9317fe9c13)
This commit is contained in:
@@ -8,9 +8,9 @@ var deferred_work = [];
|
||||
// We'll temporarily set stream colors for the streams we use in the demo
|
||||
// tutorial messages.
|
||||
var real_stream_info;
|
||||
var tutorial_stream_info = new Dict({"design": {"color": "#76ce90"},
|
||||
"social": {"color": "#fae589"},
|
||||
"devel": {"color": "#a6c7e5"}});
|
||||
var tutorial_stream_info = Dict.from({"design": {"color": "#76ce90"},
|
||||
"social": {"color": "#fae589"},
|
||||
"devel": {"color": "#a6c7e5"}});
|
||||
|
||||
// Each message object contains the minimal information necessary for it to be
|
||||
// processed by our system for adding messages to your feed.
|
||||
|
||||
Reference in New Issue
Block a user