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

Function getQuery

src/ElementQueries.js:207–218  ·  view source on GitHub ↗
(container)

Source from the content-addressed store, hash-verified

205 }
206
207 function getQuery(container) {
208 var query;
209 if (document.querySelectorAll) query = (container) ? container.querySelectorAll.bind(container) : document.querySelectorAll.bind(document);
210 if (!query && 'undefined' !== typeof $$) query = $$;
211 if (!query && 'undefined' !== typeof jQuery) query = jQuery;
212
213 if (!query) {
214 throw 'No document.querySelectorAll, jQuery or Mootools\'s $$ found.';
215 }
216
217 return query;
218 }
219
220 /**
221 * If animationStart didn't catch a new element in the DOM, we can manually search for it

Callers 2

findResponsiveImagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected