Use attributes for class selection
This commit is contained in:
5
List.js
5
List.js
@@ -14,15 +14,12 @@ class List {
|
||||
return ret;
|
||||
}
|
||||
|
||||
queryEntries(query, type) {
|
||||
queryEntries(query) {
|
||||
let ret = [];
|
||||
for (let elem of this.container_.querySelectorAll(query)) {
|
||||
if (!elem.xArchObj) {
|
||||
continue;
|
||||
}
|
||||
if (type && !(elem.xArchObj instanceof type)) {
|
||||
continue;
|
||||
}
|
||||
ret.push(elem.xArchObj);
|
||||
}
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user