Created
May 21, 2014 16:57
-
-
Save AdrienGiboire/853691519c2a80fc8597 to your computer and use it in GitHub Desktop.
wtf.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( | |
(function(){ | |
var el = document.createElement('div'), | |
bs = 'backgroundSize', | |
ubs = bs.charAt(0).toUpperCase() + bs.substr(1), | |
props = [bs, 'Webkit' + ubs, 'Moz' + ubs, 'O' + ubs]; | |
for ( var i in props ) { | |
if ( el.style[props[i]] !== undefined ) { | |
return true; | |
} | |
} | |
return false; | |
}()) | |
) { | |
return; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment