Created
July 25, 2011 11:51
-
-
Save tmaslen/1103967 to your computer and use it in GitHub Desktop.
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
function ctm() { var u = 'undefined'; return ((typeof document.querySelector !== u) && (typeof localStorage !== u) && (typeof window.addEventListener !== u)) ? true : false;} | |
function ctm() {var u='undefined';return typeof document.querySelector!==u && typeof localStorage!==u && typeof window.addEventListener!==u ? true:false;} | |
function ctm(){return 'querySelector' in document && 'localStorage' in window && 'addEventListener' in window ? true:false} | |
function ctm(){try{return 'querySelector' in document && 'localStorage' in window && 'addEventListener' in window ? true:false;}catch(){return false}} | |
function ctm(){return 'querySelector' in document && 'localStorage' in window && 'addEventListener' in window} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment