dict: Make copying Dict constructor a class constructor method

(imported from commit 7bd5f6029c1290036a47688cf2b80f9317fe9c13)
This commit is contained in:
Zev Benjamin
2013-08-19 14:46:27 -04:00
parent 43847848c5
commit 3a70c4e928
5 changed files with 27 additions and 16 deletions

View File

@@ -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.