From cc2d1b90c3bc5728d75c956d3466d58df8c97b3d Mon Sep 17 00:00:00 2001 From: Corey Wilson Date: Mon, 29 Feb 2016 21:35:24 -0500 Subject: [PATCH] fix(tests): add style tag once - Add style tag once to avoid multiplied DOM creation Closes #5557 Fixes #5548 --- Gruntfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 71255ba571..e11e8e6c78 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -436,7 +436,7 @@ module.exports = function(grunt) { .replace(/\\/g, '\\\\') .replace(/'/g, "\\'") .replace(/\r?\n/g, '\\n'); - js = `angular.module('ui.bootstrap.${moduleName}').run(function() {!angular.$$csp().noInlineStyle && angular.element(document).find('head').prepend(''); });`; + js = `angular.module('ui.bootstrap.${moduleName}').run(function() {!angular.$$csp().noInlineStyle && !angular.$$uibCss && angular.element(document).find('head').prepend(''); angular.$$uibCss = true; });`; state.js.push(js); return state;