Posted By

elvman on 08/17/11


Tagged


Versions (?)

console.log fix


 / Published in: JavaScript
 

  1. if(typeof(console) === 'undefined') {
  2. var console = {}
  3. console.log = console.error = console.info = console.debug = console.warn = console.trace = console.dir = console.dirxml = console.group = console.groupEnd = console.time = console.timeEnd = console.assert = console.profile = function() {};
  4. }

Report this snippet  

You need to login to post a comment.