Skip to content
Browse files

Removing unnecessary double exclamation marks

  • Loading branch information...
1 parent 9e73adf commit d8791b52ce576c900cb217e47189b8b3bed2c407 @glsee glsee committed Jul 22, 2012
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;
});

0 comments on commit d8791b5

Please sign in to comment.
Something went wrong with that request. Please try again.