Posted By

wbednarski on 01/27/10


Tagged

javascript console firebug proxy


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

wbednarski
shapeshifta


Firebug console log proxy


 / Published in: JavaScript
 

prevent errors on non-firebug browsers

  1. // prevent errors on non-firebug browsers
  2.  
  3. (function() {
  4. var f = function() {};
  5. var c = {
  6. info: f,
  7. log: f,
  8. assert: f,
  9. warn: f,
  10. error: f,
  11. dir: f,
  12. group: f,
  13. groupEnd: f
  14. };
  15.  
  16. if(!window.console)
  17. window.console = c;
  18. })();

Report this snippet  

You need to login to post a comment.