Skip to content
This repository has been archived by the owner on Oct 10, 2018. It is now read-only.

Commit

Permalink
Merge pull request #96 from ccnmtl/jshint-eqeqeq
Browse files Browse the repository at this point in the history
jshint eqeqeq
  • Loading branch information
sdreher committed Nov 30, 2015
2 parents e17d630 + cfeb406 commit 98c0706
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .jshintrc
Expand Up @@ -4,6 +4,7 @@
"trailing": true,
"undef": true,
"browser": true,
"eqeqeq": true,
"predef": [
"$",
"define",
Expand Down
4 changes: 2 additions & 2 deletions media/js/app/map.js
Expand Up @@ -179,11 +179,11 @@
// the more standards compliant browsers
// (mozilla/netscape/opera/IE7) use window.innerWidth
// and window.innerHeight
if (typeof window.innerWidth != 'undefined') {
if (typeof window.innerWidth !== 'undefined') {
viewportwidth = window.innerWidth;
viewportheight = window.innerHeight;
} else if (typeof document.documentElement !== 'undefined' &&
typeof document.documentElement.clientWidth !=
typeof document.documentElement.clientWidth !==
'undefined' && document.documentElement.clientWidth !== 0) {
// IE6 in standards compliant mode (i.e. with a valid
// doctype as the first line in the document)
Expand Down

0 comments on commit 98c0706

Please sign in to comment.