Created
          December 9, 2011 13:32 
        
      - 
      
 - 
        
Save carlosvillu/1451530 to your computer and use it in GitHub Desktop.  
    Lazy pattern para isMobile
  
        
  
    
      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
    
  
  
    
  | var isMobile = function() { | |
| var result = false; | |
| for (var i = 0, len = SUPPORTED_OS.length; i < len && !result; i++) { | |
| var mobile_os = SUPPORTED_OS[i]; | |
| $.os[mobile_os] && (result = true); | |
| } | |
| return isMobile = result; | |
| }; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment