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

Function removeViaMediaQuery

angular-css.js:245–256  ·  view source on GitHub ↗

* Remove Media Query

(stylesheet)

Source from the content-addressed store, hash-verified

243 * Remove Media Query
244 **/
245 function removeViaMediaQuery(stylesheet) {
246 if (!stylesheet) {
247 if(DEBUG) $log.error('No stylesheet provided');
248 return;
249 }
250 // Remove media query listener
251 if ($rootScope && angular.isDefined(mediaQuery)
252 && mediaQuery[stylesheet.href]
253 && angular.isDefined(mediaQueryListener)) {
254 mediaQuery[stylesheet.href].removeListener(mediaQueryListener[stylesheet.href]);
255 }
256 }
257
258 /**
259 * Is Media Query: checks for media settings, media queries to be ignore and match media support

Callers 1

angular-css.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected