Permalink
Browse files

Prepare version 0.1.7

  • Loading branch information...
1 parent c270116 commit 463f79a01e2e7b1e5669bf3fbcf98ba79666e15c @bbarakaci committed Feb 2, 2013
Showing with 15 additions and 9 deletions.
  1. +12 −6 dist/fixto.js
  2. +2 −2 dist/fixto.min.js
  3. +1 −1 grunt.js
View
@@ -1,4 +1,4 @@
-/*! fixto - v0.1.6 - 2012-12-02
+/*! fixto - v0.1.7 - 2013-02-02
* http://github.com/bbarakaci/fixto/*/
@@ -128,7 +128,14 @@ var fixto = (function ($, window, document) {
computedStyle:computedStyle
};
}());
-
+
+ // Dirty business
+ var ie = navigator.appName === 'Microsoft Internet Explorer';
+ var ieversion;
+
+ if(ie){
+ ieversion = parseFloat(navigator.appVersion.split("MSIE")[1]);
+ }
// Class FixToContainer
@@ -171,7 +178,7 @@ var fixto = (function ($, window, document) {
},
// at ie8 maybe only in vm window resize event fires everytime an element is resized.
- _toresize : $.browser.msie && $.browser.version === '8.0' ? document.documentElement : window,
+ _toresize : ieversion===8 ? document.documentElement : window,
// Returns the total outerHeight of the elements passed to mind option. Will return 0 if none.
_mindtop: function () {
@@ -342,9 +349,8 @@ var fixto = (function ($, window, document) {
No support for touch devices and ie lt 8
*/
var touch = !!('ontouchstart' in window);
- var ielt8 = $.browser.msie && $.browser.version < 8;
-
- if(touch || ielt8){
+
+ if(touch || ieversion<8){
fixTo = function(){
return 'not supported';
};
View
Oops, something went wrong.
View
@@ -4,7 +4,7 @@ module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
meta: {
- version: '0.1.6',
+ version: '0.1.7',
banner: '/*! fixto - v<%= meta.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'* http://github.com/bbarakaci/fixto/' +

0 comments on commit 463f79a

Please sign in to comment.