Skip to content

Commit

Permalink
Support jQuery 3
Browse files Browse the repository at this point in the history
  • Loading branch information
yidas committed Nov 28, 2018
1 parent a476fb9 commit f4d9ae5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ REQUIREMENTS
------------
This library requires the following:

- jQuery 1.11.0+
- jQuery 1.11.0+ | 2.0+ | 3.0+

---

Expand Down
4 changes: 2 additions & 2 deletions dist/js/freeze-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* RWD Table with freezing head and columns for jQuery
*
* @author Nick Tsai <myintaer@gmail.com>
* @version 1.0.0
* @version 1.1.1
* @see https://github.com/yidas/jquery-freeze-table
*/
(function ($, window) {
Expand Down Expand Up @@ -93,7 +93,7 @@
this.backgroundColor = options.backgroundColor || 'white';

// Get navbar height for keeping fixed navbar
this.fixedNavbarHeight = (fixedNavbar) ? $(fixedNavbar).outerHeight() : 0;
this.fixedNavbarHeight = (fixedNavbar) ? $(fixedNavbar).outerHeight() || 0 : 0;

// Check existence
if (this.isInit()) {
Expand Down
4 changes: 2 additions & 2 deletions docs/dist/js/freeze-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* RWD Table with freezing head and columns for jQuery
*
* @author Nick Tsai <myintaer@gmail.com>
* @version 1.1.0
* @version 1.1.1
* @see https://github.com/yidas/jquery-freeze-table
*/
(function ($, window) {
Expand Down Expand Up @@ -93,7 +93,7 @@
this.backgroundColor = options.backgroundColor || 'white';

// Get navbar height for keeping fixed navbar
this.fixedNavbarHeight = (fixedNavbar) ? $(fixedNavbar).outerHeight() : 0;
this.fixedNavbarHeight = (fixedNavbar) ? $(fixedNavbar).outerHeight() || 0 : 0;

// Check existence
if (this.isInit()) {
Expand Down
4 changes: 2 additions & 2 deletions src/js/freeze-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* RWD Table with freezing head and columns for jQuery
*
* @author Nick Tsai <myintaer@gmail.com>
* @version 1.0.0
* @version 1.1.1
* @see https://github.com/yidas/jquery-freeze-table
*/
(function ($, window) {
Expand Down Expand Up @@ -93,7 +93,7 @@
this.backgroundColor = options.backgroundColor || 'white';

// Get navbar height for keeping fixed navbar
this.fixedNavbarHeight = (fixedNavbar) ? $(fixedNavbar).outerHeight() : 0;
this.fixedNavbarHeight = (fixedNavbar) ? $(fixedNavbar).outerHeight() || 0 : 0;

// Check existence
if (this.isInit()) {
Expand Down

0 comments on commit f4d9ae5

Please sign in to comment.