refactor(ivy): Use AttributeMarker instead of NS (#23899)

- Removes NS enum
- Uses existing AttributeMarker
- Adds enum value NAMESPACE_URI

PR Close #23899
This commit is contained in:
Ben Lesh
2018-05-30 15:57:09 -07:00
committed by Victor Berchet
parent b415010222
commit 1208a35373
5 changed files with 17 additions and 27 deletions

View File

@ -262,7 +262,7 @@ export function injectAttribute(attrNameToInject: string): string|undefined {
for (let i = 0; i < attrs.length; i = i + 2) {
let attrName = attrs[i];
if (attrName === AttributeMarker.SELECT_ONLY) break;
if (attrName === 0) { // NS.FULL
if (attrName === AttributeMarker.NAMESPACE_URI) {
attrName = attrs[i += 2];
}
if (attrName == attrNameToInject) {