Skip to content

Commit 106674a

Browse files
committed
style(ie-compat): improved generated ie compat code
1 parent 330d1a8 commit 106674a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Rakefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,13 @@ task :generate_ie_compat => :init do
157157
# generate a javascript closure that contains a function which will append the generated css
158158
# string as a stylesheet to the current html document
159159
jsString = "(function(){ \r\n" +
160-
" var jsUri = document.location.href.replace(/\\/[^\/]+(#.*)?$/, '/') + " +
161-
" document.getElementById('ng-ie-compat').src; \r\n" +
162-
" var css = '#{cssString}' \r\n" +
163-
" var s = document.createElement('style'); \r\n" +
160+
" var jsUri = document.location.href.replace(/\\/[^\/]+(#.*)?$/, '/') + \r\n" +
161+
" document.getElementById('ng-ie-compat').src,\r\n" +
162+
" css = '#{cssString}',\r\n" +
163+
" s = document.createElement('style'); \r\n" +
164+
"\r\n" +
164165
" s.setAttribute('type', 'text/css'); \r\n" +
166+
"\r\n" +
165167
" if (s.styleSheet) { \r\n" +
166168
" s.styleSheet.cssText = css; \r\n" +
167169
" } else { \r\n" +

0 commit comments

Comments
 (0)