fix(Compiler): allow "." in attribute selectors (#13653)

fixes #13645
This commit is contained in:
Victor Berchet
2016-12-27 15:23:49 -08:00
committed by Igor Minar
parent 5754ecc3e1
commit 29ffdfdffe
6 changed files with 193 additions and 69 deletions

View File

@ -21,9 +21,9 @@ export function controllerKey(name: string): string {
return '$' + name + 'Controller';
}
export function getAttributesAsArray(node: Node): string[][] {
export function getAttributesAsArray(node: Node): [string, string][] {
const attributes = node.attributes;
let asArray: string[][];
let asArray: [string, string][];
if (attributes) {
let attrLen = attributes.length;
asArray = new Array(attrLen);