Skip to content

Commit

Permalink
Fix issues caught by code validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasRBowers committed Apr 15, 2015
1 parent 6530609 commit d505db3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions responsive-tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@

var scrollBarWidth = 0;

if ( !(window.mozInnerScreenX == null) ) {
if ( !(window.mozInnerScreenX === null) ) {
scrollBarWidth = window.innerWidth - $("body").width();
}

if ( ($(window).width() < responsiveBoundary - scrollBarWidth && !switched )
if ( $(window).width() < responsiveBoundary - scrollBarWidth && !switched ) {
switched = true;
$("table.responsive").each(function(i, element) {
splitTable($(element));
});

return true;
}
else if ( switched && ($(window).width() > responsiveBoundary - scrollBarWidth) ) {
Expand Down

0 comments on commit d505db3

Please sign in to comment.