File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 134134
135135 scope . destroy = function ( ) {
136136 if ( attrs . tree ) {
137- scope . tree = scope . $parent [ attrs . tree ] = elm ;
137+ if ( attrs . tree . indexOf ( '.' ) !== - 1 ) {
138+ var split = attrs . tree . split ( '.' ) ;
139+ scope . tree = scope . $parent [ split [ 0 ] ] [ split [ 1 ] ] = elm ;
140+ }
141+ else {
142+ scope . tree = scope . $parent [ attrs . tree ] = elm ;
143+ }
144+
138145 } else {
139146 scope . tree = elm ;
140147 }
Original file line number Diff line number Diff line change 134134
135135 scope . destroy = function ( ) {
136136 if ( attrs . tree ) {
137- scope . tree = scope . $parent [ attrs . tree ] = elm ;
137+ if ( attrs . tree . indexOf ( '.' ) !== - 1 ) {
138+ var split = attrs . tree . split ( '.' ) ;
139+ scope . tree = scope . $parent [ split [ 0 ] ] [ split [ 1 ] ] = elm ;
140+ }
141+ else {
142+ scope . tree = scope . $parent [ attrs . tree ] = elm ;
143+ }
144+
138145 } else {
139146 scope . tree = elm ;
140147 }
You can’t perform that action at this time.
0 commit comments