aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorMisko Hevery2011-03-11 13:57:08 -0800
committerMisko Hevery2011-03-11 14:16:53 -0800
commit3224862a9c0dd938b818a014048b5616b6146344 (patch)
treec9d6f9b665b574f69f5dd2f8bec828484d43e5af /Rakefile
parent0084cb5ca4bc9acda54d304147b0b0fe8e1980f3 (diff)
downloadangular.js-3224862a9c0dd938b818a014048b5616b6146344.tar.bz2
Stop using document write, so that we are compatible with async script loader
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index c6b7cdd1..1945b101 100644
--- a/Rakefile
+++ b/Rakefile
@@ -284,7 +284,7 @@ def gen_css(cssFile, minify = false)
css.gsub! /'/, "\\\\'"
css.gsub! /\n/, "\\n"
- return %Q{document.write('<style type="text/css">#{css}</style>');}
+ return %Q{angular.element(document).find('head').append('<style type="text/css">#{css}</style>');}
end