Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit a816251

Browse files
committed
fix(Gruntfile): add per module flag
- Add flag per module Closes #5567
1 parent 299f751 commit a816251

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Gruntfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ module.exports = function(grunt) {
436436
.replace(/\\/g, '\\\\')
437437
.replace(/'/g, "\\'")
438438
.replace(/\r?\n/g, '\\n');
439-
js = `angular.module('ui.bootstrap.${moduleName}').run(function() {!angular.$$csp().noInlineStyle && !angular.$$uibCss && angular.element(document).find('head').prepend('<style type="text/css">${css}</style>'); angular.$$uibCss = true; });`;
439+
js = `angular.module('ui.bootstrap.${moduleName}').run(function() {!angular.$$csp().noInlineStyle && !angular.$$uib${_.capitalize(moduleName)}Css && angular.element(document).find('head').prepend('<style type="text/css">${css}</style>'); angular.$$uib${_.capitalize(moduleName)}Css = true; });`;
440440
state.js.push(js);
441441

442442
return state;

0 commit comments

Comments
 (0)