File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -131,11 +131,12 @@ cls.Watches = function(view)
131131 "0" : [ [ [ "watches" ] ] ] ,
132132 "watches" : [ [ [ ] , [ ] ] ]
133133 } ;
134- this . _expand_tree =
134+ var raw_tree =
135135 {
136136 "object_id" : 0 ,
137137 "protos" : { "0" : { "" : { "object_id" : "watches" } } }
138138 } ;
139+ this . _expand_tree = new Dict ( raw_tree ) ;
139140 } ;
140141
141142 /* implementation */
Original file line number Diff line number Diff line change @@ -58,7 +58,10 @@ Dict.prototype = new function()
5858 this . _dict = Object . create ? Object . create ( null ) : { } ;
5959 for ( var key in obj )
6060 {
61- this . set ( key , obj [ key ] ) ;
61+ var value = obj [ key ] ;
62+ if ( Object . prototype . toString . call ( value ) == "[object Object]" )
63+ value = new Dict ( value ) ;
64+ this . set ( key , value ) ;
6265 }
6366 } ;
6467} ;
You can’t perform that action at this time.
0 commit comments