Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removing unnecessary double exclamation marks

  • Loading branch information...
commit d8791b52ce576c900cb217e47189b8b3bed2c407 1 parent 9e73adf
@glsee glsee authored
View
2  feature-detects/css-vhunit.js
@@ -8,7 +8,7 @@ Modernizr.addTest('cssvhunit', function() {
getComputedStyle(elem, null) :
elem.currentStyle)["height"],10);
- bool= !!(compStyle == height);
+ bool= (compStyle == height);
});
return bool;
});
View
2  feature-detects/css-vmaxunit.js
@@ -8,7 +8,7 @@ Modernizr.addTest('cssvmaxunit', function(){
compWidth = parseInt((window.getComputedStyle ?
getComputedStyle(elem, null) :
elem.currentStyle)['width'],10);
- bool = !!( parseInt(Math.max(one_vw, one_vh)*50,10) == compWidth );
+ bool = ( parseInt(Math.max(one_vw, one_vh)*50,10) == compWidth );
});
return bool;
});
View
2  feature-detects/css-vminunit.js
@@ -8,7 +8,7 @@ Modernizr.addTest('cssvminunit', function(){
compWidth = parseInt((window.getComputedStyle ?
getComputedStyle(elem, null) :
elem.currentStyle)['width'],10);
- bool = !!( parseInt(Math.min(one_vw, one_vh)*50,10) == compWidth );
+ bool = ( parseInt(Math.min(one_vw, one_vh)*50,10) == compWidth );
});
return bool;
});
View
2  feature-detects/css-vwunit.js
@@ -8,7 +8,7 @@ Modernizr.addTest('cssvwunit', function(){
getComputedStyle(elem, null) :
elem.currentStyle)["width"],10);
- bool= !!(compStyle == width);
+ bool= (compStyle == width);
});
return bool;
});
Please sign in to comment.
Something went wrong with that request. Please try again.