Permalink
Browse files

version bump

  • Loading branch information...
1 parent 88a36c6 commit c805b4d96fbb5b508cdf5c642221e150f2f57e9b Shawn Allen committed Nov 18, 2012
Showing with 28 additions and 24 deletions.
  1. +25 −21 aight.js
  2. +2 −2 aight.min.js
  3. +1 −1 js/aight.js
View
@@ -1,32 +1,36 @@
/*
- * aight v1.0.1
+ * aight v1.0.2
*
* <http://github.com/shawnbot/aight/>
*
* Aight is a collection of JavaScript shims that make IE8 behave like a modern
* browser (sans SVG).
*/
-var aight = (function() {
- var nav = navigator.appName,
- version = navigator.appVersion,
- ie = (nav == 'Microsoft Internet Explorer');
- if (ie) {
- var match = navigator.userAgent.match(/MSIE ([0-9]{1,}[\.0-9]{0,})/);
- version = match ? parseFloat(match[1]) : 0;
- }
- return {
- browser: {
- name: nav,
- version: version,
- ie: ie,
- ie10: (ie && version >= 10),
- ie9: (ie && version >= 9 && version < 10),
- ie8: (ie && version >= 8 && version < 9),
- ie7: (ie && version >= 7 && version < 8),
- ie6: (ie && version >= 6 && version < 7)
+(function(exports) {
+
+ var aight = exports.aight = (function() {
+ var nav = navigator.appName,
+ version = navigator.appVersion,
+ ie = (nav == 'Microsoft Internet Explorer');
+ if (ie) {
+ var match = navigator.userAgent.match(/MSIE ([0-9]{1,}[\.0-9]{0,})/);
+ version = match ? parseFloat(match[1]) : 0;
}
- };
-})();
+ return {
+ browser: {
+ name: nav,
+ version: version,
+ ie: ie,
+ ie10: (ie && version >= 10),
+ ie9: (ie && version >= 9 && version < 10),
+ ie8: (ie && version >= 8 && version < 9),
+ ie7: (ie && version >= 7 && version < 8),
+ ie6: (ie && version >= 6 && version < 7)
+ }
+ };
+ })();
+
+})(this);
/*
* classList.js: Cross-browser full element.classList implementation.
Oops, something went wrong.

0 comments on commit c805b4d

Please sign in to comment.