Skip to content

Commit

Permalink
add commonjs support, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoryak committed Oct 26, 2016
1 parent e3901b8 commit 474a10b
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 15 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### 1.4.5

- #334 - fix memory leaks from print events
- #335 - absolute position on overflow scrolling was broken if used with `top` option
- added rudementary commonjs support to require jquery

### 1.4.4

- #323 - use css transform (GPU) to float the header. (IE9+)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
jquery.floatThead 1.4.4
jquery.floatThead 1.4.5
=================
[![woot](http://giant.gfycat.com/AnyGloriousAlpaca.gif "or just click")](http://mkoryak.github.io/floatThead/)

Expand All @@ -20,7 +20,7 @@ npm install floatthead
bower install floatThead
```
#### Download code
[Latest Release (zip)](https://github.com/mkoryak/floatThead/archive/1.4.4.zip)
[Latest Release (zip)](https://github.com/mkoryak/floatThead/archive/1.4.5.zip)

#### Via CDN
[http://cdnjs.com/libraries/floatthead/](http://cdnjs.com/libraries/floatthead/)
Expand Down
16 changes: 13 additions & 3 deletions dist/jquery.floatThead-slim.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @preserve jQuery.floatThead 1.4.5dev - http://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2016 Misha Koryak
// @preserve jQuery.floatThead 1.4.5 - http://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2016 Misha Koryak
// @license MIT

/* @author Misha Koryak
Expand Down Expand Up @@ -684,7 +684,10 @@
}
var windowTop = $window.scrollTop();
var windowLeft = $window.scrollLeft();
var scrollContainerLeft = (isResponsiveContainerActive() ? $responsiveContainer : $scrollContainer).scrollLeft();
var scrollContainerLeft = (
isResponsiveContainerActive() ? $responsiveContainer :
(locked ? $scrollContainer : $window)
).scrollLeft();

return function(eventType){
responsive = isResponsiveContainerActive();
Expand Down Expand Up @@ -1070,4 +1073,11 @@
});
return this;
};
})(jQuery);
})((function(){
var $ = window.jQuery;
if(typeof module !== 'undefined' && module.exports && !$) {
// only use cjs if they dont have a jquery for me to use, and we have commonjs
$ = require('jquery');
}
return $;
})());
4 changes: 2 additions & 2 deletions dist/jquery.floatThead-slim.min.js

Large diffs are not rendered by default.

16 changes: 13 additions & 3 deletions dist/jquery.floatThead.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @preserve jQuery.floatThead 1.4.5dev - http://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2016 Misha Koryak
// @preserve jQuery.floatThead 1.4.5 - http://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2016 Misha Koryak
// @license MIT

/* @author Misha Koryak
Expand Down Expand Up @@ -684,7 +684,10 @@
}
var windowTop = $window.scrollTop();
var windowLeft = $window.scrollLeft();
var scrollContainerLeft = (isResponsiveContainerActive() ? $responsiveContainer : $scrollContainer).scrollLeft();
var scrollContainerLeft = (
isResponsiveContainerActive() ? $responsiveContainer :
(locked ? $scrollContainer : $window)
).scrollLeft();

return function(eventType){
responsive = isResponsiveContainerActive();
Expand Down Expand Up @@ -1070,7 +1073,14 @@
});
return this;
};
})(jQuery);
})((function(){
var $ = window.jQuery;
if(typeof module !== 'undefined' && module.exports && !$) {
// only use cjs if they dont have a jquery for me to use, and we have commonjs
$ = require('jquery');
}
return $;
})());

/* jQuery.floatThead.utils - http://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2016 Misha Koryak
* License: MIT
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.floatThead.min.js

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions jquery.floatThead.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @preserve jQuery.floatThead 1.4.5dev - http://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2016 Misha Koryak
// @preserve jQuery.floatThead 1.4.5 - http://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2016 Misha Koryak
// @license MIT

/* @author Misha Koryak
Expand Down Expand Up @@ -1073,4 +1073,11 @@
});
return this;
};
})(jQuery);
})((function(){
var $ = window.jQuery;
if(typeof module !== 'undefined' && module.exports && !$) {
// only use cjs if they dont have a jquery for me to use, and we have commonjs
$ = require('jquery');
}
return $;
})());
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "floatthead",
"version": "1.4.4",
"version": "1.4.5",
"description": "fixed table header plugin that works",
"main": "dist/jquery.floatThead.js",
"dependencies": {},
Expand Down

0 comments on commit 474a10b

Please sign in to comment.