File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -113,17 +113,11 @@ export class NativeScriptRenderer extends Renderer {
113
113
114
114
attachViewAfter ( anchorNode : NgView , viewRootNodes : NgView [ ] ) {
115
115
traceLog ( 'NativeScriptRenderer.attachViewAfter: ' + anchorNode . nodeName + ' ' + anchorNode ) ;
116
- //HACK: The anchor.templateParent precedence and child.templateParent
117
- //assignment are a workaround for RadSideDrawer.
118
- //Remove it once we ship the fix in the RadSideDrawer directives.
119
- const parent = ( anchorNode . templateParent || < NgView > anchorNode . parent ) ;
116
+ const parent = ( < NgView > anchorNode . parent || anchorNode . templateParent ) ;
120
117
const insertPosition = this . viewUtil . getChildIndex ( parent , anchorNode ) ;
121
118
122
119
viewRootNodes . forEach ( ( node , index ) => {
123
120
const childIndex = insertPosition + index + 1 ;
124
- //Remember the template parent in case someone moves the view element
125
- //before Angular attaches the next view.
126
- node . templateParent = parent ;
127
121
this . viewUtil . insertChild ( parent , node , childIndex ) ;
128
122
this . animateNodeEnter ( node ) ;
129
123
} ) ;
You can’t perform that action at this time.
0 commit comments