code: function getComponentsInEventRegistry(eventRegistry, namespace) {
      var selector = Object.keys(eventRegistry)
          .map(function (componentName) { return "[data-" + namespace + "-name=\"" + componentName + "\"]"; })
          .join(",");
      if (!selector) {
          return [];
      }
      var componentElements = document.documentElement.querySelectorAll(selector);
      var components = [];
      for (var i = 0; i < componentElements.length; i++) {
          var component = getComponentByDomNode(componentElements[i], namespace);
          if (component) {
              components.push(component);
          }
      }
      return components;
  }
docs: This function returns all components for the given eventRegistry which can be found in the dom.