MCPcopy Index your code
hub / github.com/castillo-io/angular-css / isMediaQuery

Function isMediaQuery

angular-css.js:261–274  ·  view source on GitHub ↗

* Is Media Query: checks for media settings, media queries to be ignore and match media support

(stylesheet)

Source from the content-addressed store, hash-verified

259 * Is Media Query: checks for media settings, media queries to be ignore and match media support
260 **/
261 function isMediaQuery(stylesheet) {
262 if (!stylesheet) {
263 if(DEBUG) $log.error('No stylesheet provided');
264 return;
265 }
266 return !!(
267 // Check for media query setting
268 stylesheet.media
269 // Check for media queries to be ignored
270 && (mediaQueriesToIgnore.indexOf(stylesheet.media) === -1)
271 // Check for matchMedia support
272 && $window.matchMedia
273 );
274 }
275
276 /**
277 * Get From Route: returns array of css objects from single route

Callers 1

angular-css.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected