Skip to content

Instantly share code, notes, and snippets.

@bjankord
Created March 18, 2013 15:41
Show Gist options
  • Save bjankord/5188081 to your computer and use it in GitHub Desktop.
Save bjankord/5188081 to your computer and use it in GitHub Desktop.
Enhanced JS checks
//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