checkpoint
This commit is contained in:
1 parent
77b68bf272
commit
0fb18de28e
2 files changed
+2
-2
No files matched your search
Vendored
+1
-1
@@ -32,7 +32,7 @@ export declare class TagCollection implements TagCollectionType {
|
||||
tags: TagType[];
|
||||
map: Map<string, TagType[]>;
|
||||
constructor(tags: TagType[]);
|
||||
getByName(name: string): TagType;
|
||||
getByName(name: string): TagType | undefined;
|
||||
getByElementName(element: string): TagType | undefined;
|
||||
}
|
||||
export {};
|
||||
+1
-1
@@ -157,7 +157,7 @@ export class TagCollection implements TagCollectionType {
|
||||
}
|
||||
}
|
||||
|
||||
getByName(name: string) {
|
||||
getByName(name: string): TagType | undefined {
|
||||
return this.tags.filter(t => {
|
||||
t.constructor.name == name
|
||||
})[0] || undefined;
|
||||
|
||||
Reference in new issue
Block a user