MCPcopy
hub / github.com/marcj/css-element-queries / findElementQueriesElements

Function findElementQueriesElements

src/ElementQueries.js:223–234  ·  view source on GitHub ↗

* If animationStart didn't catch a new element in the DOM, we can manually search for it

(container)

Source from the content-addressed store, hash-verified

221 * If animationStart didn't catch a new element in the DOM, we can manually search for it
222 */
223 function findElementQueriesElements(container) {
224 var query = getQuery(container);
225
226 for (var selector in allQueries) if (allQueries.hasOwnProperty(selector)) {
227 // find all elements based on the extract query selector from the element query rule
228 var elements = query(selector, container);
229
230 for (var i = 0, j = elements.length; i < j; i++) {
231 setupElement(elements[i], selector);
232 }
233 }
234 }
235
236 /**
237 *

Callers 1

ElementQueriesFunction · 0.85

Calls 2

getQueryFunction · 0.85
setupElementFunction · 0.85

Tested by

no test coverage detected