diff options
| author | Igor Minar | 2011-07-11 14:32:18 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-07-13 16:21:07 -0700 |
| commit | 106674ac1e06a6d23b5ece3a05f5eefd0bdc2842 (patch) | |
| tree | 9845e46e1c414248d161f6dc73b6ca684289142a | |
| parent | 330d1a870dd81f8665b415f4acc104087156b989 (diff) | |
| download | angular.js-106674ac1e06a6d23b5ece3a05f5eefd0bdc2842.tar.bz2 | |
style(ie-compat): improved generated ie compat code
| -rw-r--r-- | Rakefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -157,11 +157,13 @@ task :generate_ie_compat => :init do # generate a javascript closure that contains a function which will append the generated css # string as a stylesheet to the current html document jsString = "(function(){ \r\n" + - " var jsUri = document.location.href.replace(/\\/[^\/]+(#.*)?$/, '/') + " + - " document.getElementById('ng-ie-compat').src; \r\n" + - " var css = '#{cssString}' \r\n" + - " var s = document.createElement('style'); \r\n" + + " var jsUri = document.location.href.replace(/\\/[^\/]+(#.*)?$/, '/') + \r\n" + + " document.getElementById('ng-ie-compat').src,\r\n" + + " css = '#{cssString}',\r\n" + + " s = document.createElement('style'); \r\n" + + "\r\n" + " s.setAttribute('type', 'text/css'); \r\n" + + "\r\n" + " if (s.styleSheet) { \r\n" + " s.styleSheet.cssText = css; \r\n" + " } else { \r\n" + |
