a73e0958d5
Move all the dom-things to use the dom service in tabular-collection, feedback-dialog, list-collection and node show. Move get-component-factory into utils/dom and use dom.root() in a few more places This includes an additional `dom.components` method which gives you a list of components matching the selector instead of just one.
10 lines
220 B
JavaScript
10 lines
220 B
JavaScript
export default function(owner, key = '-view-registry:main') {
|
|
const components = owner.lookup(key);
|
|
return function(el) {
|
|
const id = el.getAttribute('id');
|
|
if (id) {
|
|
return components[id];
|
|
}
|
|
};
|
|
}
|