Created
March 18, 2013 15:41
-
-
Save bjankord/5188081 to your computer and use it in GitHub Desktop.
Enhanced JS checks
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
//Way to differieniate between enhanced and base versions from http://www.zachleat.com/toolordie/set2/slide4.html | |
// IE8+, BB 5+ | |
"querySelectorAll" in document | |
// IE7+ (jQuery Mobile 1.0) | |
$.support.mediaquery || $.mobile.browser.ie && $.mobile.browser.ie >= 7; | |
// IE9+, BB 7+ | |
"getElementsByClassName" in document | |
// IE9+, BB 6+ | |
"getElementsByClassName" in document || window.blackberry && window.WebKitPoint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment