diff options
| author | Igor Minar | 2010-10-15 21:38:41 -0700 |
|---|---|---|
| committer | Igor Minar | 2010-10-18 16:24:43 -0700 |
| commit | 7059579c7499337c7946f3877ce77dd9a04ea22a (patch) | |
| tree | 889a53d787da3ebaa00fc1941d77102e5e5cded3 /src/angular-bootstrap.js | |
| parent | d0e55bf4465bdfe6660f75d26882bc1d9da9b924 (diff) | |
| download | angular.js-7059579c7499337c7946f3877ce77dd9a04ea22a.tar.bz2 | |
inline all images into css
* embedded images as data URIs
* rake task to generate multipart js file with embeded images for IE
* move images into a separate directory outside of src or css and
keep them there for reference
* clean up Rakefile and ruby code
* .gitignore update
* don't penalize IE 8+ with an extra request to the ie-compat.js file
Diffstat (limited to 'src/angular-bootstrap.js')
| -rw-r--r-- | src/angular-bootstrap.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/angular-bootstrap.js b/src/angular-bootstrap.js index 4c95e8b0..416acbde 100644 --- a/src/angular-bootstrap.js +++ b/src/angular-bootstrap.js @@ -37,6 +37,13 @@ document.write('<script type="text/javascript" src="' + serverPath + file +'"></script>'); } + function addCss(file) { + document.write('<link rel="stylesheet" type="text/css" href="' + + serverPath + '/../css' + file + '"/>'); + } + + addCss("/angular.css"); + addScript("/Angular.js"); addScript("/JSON.js"); addScript("/Compiler.js"); @@ -58,10 +65,15 @@ addScript("/markups.js"); addScript("/widgets.js"); + window.onload = function(){ try { if (previousOnLoad) previousOnLoad(); } catch(e) {} + + //angular-ie-compat.js needs to be pregenerated for development with IE<8 + if (msie<8) addScript('../angular-ie-compat.js'); + angularInit(angularJsConfig(document)); }; |
