* Remove Media Query
(stylesheet)
| 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 |