From 7059579c7499337c7946f3877ce77dd9a04ea22a Mon Sep 17 00:00:00 2001
From: Igor Minar
Date: Fri, 15 Oct 2010 21:38:41 -0700
Subject: 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
---
src/angular-bootstrap.js | 12 ++++++++++++
1 file changed, 12 insertions(+)
(limited to 'src/angular-bootstrap.js')
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('');
}
+ function addCss(file) {
+ document.write('');
+ }
+
+ 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));
};
--
cgit v1.2.3