Created
          September 11, 2011 02:36 
        
      - 
      
 - 
        
Save jsermeno/1209094 to your computer and use it in GitHub Desktop.  
    Window, Self, and Web Workers
  
        
  
    
      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 ( window.Blob === undefined ) { | |
| // attach library custom implementation | |
| } else { | |
| // use native implementation | |
| } | 
  
    
      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 qux() { | |
| var that = this; | |
| that.bar = false; | |
| document.getElementById('foo').addEventListener('click', function(){ | |
| that.bar = true; | |
| }, false); | |
| } | 
  
    
      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 qux() { | |
| var self = this; | |
| self.bar = false; | |
| document.getElementById('foo').addEventListener('click', function(){ | |
| self.bar = true; | |
| }, false); | |
| } | 
  
    
      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 ( self.Blob === undefined ) { | |
| // attach library custom implementation | |
| } else { | |
| // use native implementation | |
| } | 
  
    
      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 root = this; | 
  
    
      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 ( typeof module !== 'undefined' && module.exports ) { | |
| module.exports = _; | |
| _._ = _; | |
| } else { | |
| root['_'] = _; | |
| } | 
  
    
      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 ( typeof Blob === 'undefined' ) { | |
| // attach library custom implementation | |
| } else { | |
| // use native implementation | |
| } | 
  
    
      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
    
  
  
    
  | window.open('http://www.google.com', 'googlePopup', 'status=1, toolbar=1'); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment