• 
      

    Fix the console fallbacks to not break older browsers.

    Review Request #3814 — Created Jan. 29, 2013 and submitted

    Information

    Review Board
    release-1.7.x

    Reviewers

    Fix the console fallbacks to not break older browsers.
    
    The console fallbacks were designed to work if no console API was
    defined, but it still ended up accessing stuff inside of console. It
    also had some unused code at the end. This has been fixed and should
    restore compatibility with Firefox 3.x and IE.
    Tested with a valid console API, and made sure it still worked.
    
    Simulated console being undefined, and ensured that now works as well.
    reviewbot
    1. This is a review from Review Bot.
        Tool: PEP8 Style Checker
        Processed Files:
        Ignored Files:
          reviewboard/static/rb/js/utils/consoleUtils.js
      
      
    2. 
        
    david
    1. What do you mean by "simulated console being undefined"?
      1. window.console. It's just an object, so I overwrote it with:
        
            window.console = undefined;
        
        Which is what you'd get if you didn't have those APIs in the first place.
    2. 
        
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-1.7.x (62e63833c58b5ac8068199bb34897569654448e2)