parent
2379ad1a4b
commit
b06f1c0087
|
@ -97,8 +97,6 @@ export function getRendererFactory(): RendererFactory3 {
|
||||||
return rendererFactory;
|
return rendererFactory;
|
||||||
}
|
}
|
||||||
|
|
||||||
let currentElementNode: LElementNode|null = null;
|
|
||||||
|
|
||||||
export function getCurrentSanitizer(): Sanitizer|null {
|
export function getCurrentSanitizer(): Sanitizer|null {
|
||||||
return viewData && viewData[SANITIZER];
|
return viewData && viewData[SANITIZER];
|
||||||
}
|
}
|
||||||
|
@ -797,7 +795,6 @@ export function elementStart(
|
||||||
|
|
||||||
const node: LElementNode =
|
const node: LElementNode =
|
||||||
createLNode(index, TNodeType.Element, native !, name, attrs || null, null);
|
createLNode(index, TNodeType.Element, native !, name, attrs || null, null);
|
||||||
currentElementNode = node;
|
|
||||||
|
|
||||||
if (attrs) {
|
if (attrs) {
|
||||||
setUpAttributes(native, attrs);
|
setUpAttributes(native, attrs);
|
||||||
|
@ -1311,7 +1308,6 @@ export function elementEnd(): void {
|
||||||
ngDevMode && assertNodeType(previousOrParentNode, TNodeType.Element);
|
ngDevMode && assertNodeType(previousOrParentNode, TNodeType.Element);
|
||||||
currentQueries && (currentQueries = currentQueries.addNode(previousOrParentNode));
|
currentQueries && (currentQueries = currentQueries.addNode(previousOrParentNode));
|
||||||
queueLifecycleHooks(previousOrParentNode.tNode.flags, tView);
|
queueLifecycleHooks(previousOrParentNode.tNode.flags, tView);
|
||||||
currentElementNode = null;
|
|
||||||
elementDepthCount--;
|
elementDepthCount--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1514,8 +1510,7 @@ export function elementStyling<T>(
|
||||||
classDeclarations?: (string | boolean | InitialStylingFlags)[] | null,
|
classDeclarations?: (string | boolean | InitialStylingFlags)[] | null,
|
||||||
styleDeclarations?: (string | boolean | InitialStylingFlags)[] | null,
|
styleDeclarations?: (string | boolean | InitialStylingFlags)[] | null,
|
||||||
styleSanitizer?: StyleSanitizeFn | null): void {
|
styleSanitizer?: StyleSanitizeFn | null): void {
|
||||||
const lElement = currentElementNode !;
|
const tNode = previousOrParentNode.tNode;
|
||||||
const tNode = lElement.tNode;
|
|
||||||
if (!tNode.stylingTemplate) {
|
if (!tNode.stylingTemplate) {
|
||||||
// initialize the styling template.
|
// initialize the styling template.
|
||||||
tNode.stylingTemplate =
|
tNode.stylingTemplate =
|
||||||
|
|
|
@ -431,9 +431,6 @@
|
||||||
{
|
{
|
||||||
"name": "createViewQuery"
|
"name": "createViewQuery"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "currentElementNode"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "defineComponent"
|
"name": "defineComponent"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1316,9 +1316,6 @@
|
||||||
{
|
{
|
||||||
"name": "createViewQuery"
|
"name": "createViewQuery"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "currentElementNode"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "dateGetter"
|
"name": "dateGetter"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue