pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/NativeScript/nativescript-angular/commit/c2eaef52a66dbbee982f73bb968a706cee38f633

igin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-10539fe0effdbc74.css" /> fix(ivy): support view references in insertBefore (#2258) · NativeScript/nativescript-angular@c2eaef5 · GitHub
Skip to content

Commit c2eaef5

Browse files
authored
fix(ivy): support view references in insertBefore (#2258)
1 parent 623d2f7 commit c2eaef5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

nativescript-angular/renderer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export class NativeScriptRenderer extends Renderer2 {
3131
}
3232

3333
@profile
34-
insertBefore(parent: NgView, newChild: NgView, { previous, next }: ElementReference): void {
34+
insertBefore(parent: NgView, newChild: NgView, refChild: NgView | ElementReference): void {
35+
let { previous, next } = refChild instanceof View ? this.nextSibling(refChild) : refChild;
3536
if (NativeScriptDebug.isLogEnabled()) {
3637
NativeScriptDebug.rendererLog(`NativeScriptRenderer.insertBefore child: ${newChild} ` + `parent: ${parent} previous: ${previous} next: ${next}`);
3738
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy