aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatias Niemelä2013-07-25 01:55:13 -0400
committerIgor Minar2013-07-26 10:30:09 -0700
commitfbad068aeb229fd3dd2a3004879584c728fed735 (patch)
treee343a088b8e2b7678df7b409b96b6cd185fed660 /lib
parent6031f1db515d9c8fd0f8a64e01a38c47792f50b8 (diff)
downloadangular.js-fbad068aeb229fd3dd2a3004879584c728fed735.tar.bz2
fix(grunt): change css wrapping to prepend styles to the top of the head tag
angular.css is used by the utils.js CSS wrap operation, but ng-hide or any other CSS styles present in angular.css cannot be overridden unless the styles appear before the stylesheet is in place. This fix allows for this to work
Diffstat (limited to 'lib')
-rw-r--r--lib/grunt/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/grunt/utils.js b/lib/grunt/utils.js
index 9d51e81c..97beb71b 100644
--- a/lib/grunt/utils.js
+++ b/lib/grunt/utils.js
@@ -85,7 +85,7 @@ module.exports = {
.replace(/\\/g, '\\\\')
.replace(/'/g, "\\'")
.replace(/\r?\n/g, '\\n');
- return "angular.element(document).find('head').append('<style type=\"text/css\">" + css + "</style>');";
+ return "angular.element(document).find('head').prepend('<style type=\"text/css\">" + css + "</style>');";
}
},