Skip to content

Commit

Permalink
prepare to release 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoryak committed May 28, 2020
1 parent 72b5cdc commit eff21ab
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
build/
compiled-docs/
license.txt
.DS_Store
node_modules/
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
### 2.2.0
The Covid Release

bug fixes:
- #454 - Fix destroy function when using autoReflow with multiple tables

new features:
- #445 - Support hidden columns in tables that have an existing colgroup
- #458 - TypeScript definitions

### 2.1.4
This release is dedicated to my cat. May he rest in catnip and meats.

Expand Down
7 changes: 3 additions & 4 deletions dist/jquery.floatThead.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
return that;
})();

var canObserveMutations = typeof MutationObserver !== 'undefined';
var globalCanObserveMutations = typeof MutationObserver !== 'undefined';


//browser stuff
Expand Down Expand Up @@ -260,8 +260,6 @@
return this; //no more crappy browser support.
}

var mObs = null; //mutation observer lives in here if we can use it / make it

if(util.isFunction(isTableWidthBug)) {
isTableWidthBug = isTableWidthBug();
}
Expand Down Expand Up @@ -309,7 +307,8 @@
if(!$table.is('table')){
throw new Error('jQuery.floatThead must be run on a table element. ex: $("table").floatThead();');
}
canObserveMutations = opts.autoReflow && canObserveMutations; //option defaults to false!
var canObserveMutations = opts.autoReflow && globalCanObserveMutations; //option defaults to false!
var mObs = null; //mutation observer lives in here if we can use it / make it
var $header = $table.children('thead:first');
var $tbody = $table.children('tbody:first');
if($header.length === 0 || $tbody.length === 0){
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.floatThead.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "floatthead",
"version": "2.1.4",
"version": "2.2.0",
"description": "fixed table header plugin that works",
"main": "dist/jquery.floatThead.min.js",
"type": "dist/jquery.floatThead.d.ts",
"scripts": {
"build": "cp src/jquery.floatThead.js dist/jquery.floatThead.js && uglifyjs dist/jquery.floatThead.js --compress --mangle --comments -o dist/jquery.floatThead.min.js"
"build": "cp src/* dist/ && uglifyjs dist/jquery.floatThead.js --compress --mangle --comments -o dist/jquery.floatThead.min.js"
},
"dependencies": {},
"devDependencies": {
Expand All @@ -22,6 +22,7 @@
"fixed table header",
"table",
"thead",
"fixed position",
"the cat is cute",
"floatThead",
"scrolling table",
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/jquery.floatThead.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/** @preserve jQuery.floatThead 2.2.0 - https://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2019 Misha Koryak **/
/** @preserve jQuery.floatThead 2.2.0 - https://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2020 Misha Koryak **/
// @license MIT

/* @author Misha Koryak
* @projectDescription position:fixed on steroids. Lock a table header in place while scrolling.
*
* Dependencies:
* jquery 1.9.0 + [required] OR jquery 1.7.0 + jquery UI core
* jquery 1.9.0+ [required] OR jquery 1.7.0+ jquery UI core
*
* https://mkoryak.github.io/floatThead/
*
* Tested on FF13+, Chrome 21+, IE8, IE9, IE10, IE11
* Tested on FF13+, Chrome 21+, IE9, IE10, IE11, EDGE
*/
(function( $ ) {
/**
Expand Down

0 comments on commit eff21ab

Please sign in to comment.