src/ui/components/component.js
function setupDomNodes() {
    this.nodes = {};

    this._findNodesWithin(this, (node, isComponent) => {
      const layerId = node.getAttribute && node.getAttribute('layer-id');
      if (layerId) this.nodes[layerId] = node;

      if (isComponent) {
        if (!node.properties) node.properties = {};
        node.properties.parentComponent = this;
      }
    });
  }
function setupDomNodes() {
    this.nodes = {};

    this._findNodesWithin(this, (node, isComponent) => {
      const layerId = node.getAttribute && node.getAttribute('layer-id');
      if (layerId) this.nodes[layerId] = node;

      if (isComponent) {
        if (!node.properties) node.properties = {};
        node.properties.parentComponent = this;
      }
    });
  }
function setupDomNodes ( ) { this . nodes = { } ; this . _findNodesWithin ( this , ( node , isComponent ) => { const layerId = node . getAttribute && node . getAttribute ( 'layer-id' ) ; if ( layerId ) this . nodes [ layerId ] = node ; if ( isComponent ) { if ( ! node . properties ) node . properties = { } ; node . properties . parentComponent = this ; } } ) ; }
The setupDomNodes method looks at all child nodes of this node that have layer-id properties and indexes them in the `nodes` property.

Typically, this node has child nodes loaded via its template, and ready by the time your `created` method is called.

This call is made on your behalf prior to calling `created`, but if using templates after `created` is called,
you may need to call this directly.

@method setupDomNodes
@protected
The setupDomNodes method looks at all child nodes of this node that have layer - id properties and indexes them in the nodes property .