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

Function mapBreakpointToMedia

angular-css.js:116–123  ·  view source on GitHub ↗

* Map breakpoitns defined in defaults to stylesheet media attribute

(stylesheet)

Source from the content-addressed store, hash-verified

114 * Map breakpoitns defined in defaults to stylesheet media attribute
115 **/
116 function mapBreakpointToMedia(stylesheet) {
117 if (angular.isDefined(options.breakpoints)) {
118 if (stylesheet.breakpoint in options.breakpoints) {
119 stylesheet.media = options.breakpoints[stylesheet.breakpoint];
120 }
121 delete stylesheet.breakpoints;
122 }
123 }
124
125 /**
126 * Parse: returns array with full all object based on defaults

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected