1
0
www.mikescher.com/framework/vendors/console-normalizer/normalizeconsole.min.js

1 line
891 B
JavaScript
Raw Permalink Normal View History

2014-05-13 12:40:42 +02:00
(function(f){f||(f=window.console={log:function(a,b,c,d,e){},info:function(a,b,c,d,e){},warn:function(a,b,c,d,e){},error:function(a,b,c,d,e){}});if(!Function.prototype.bind){Function.prototype.bind=function(a){var b=this,args=Array.prototype.slice.call(arguments,1);return function(){return b.apply(a,Array.prototype.concat.apply(args,arguments))}}}if(typeof(f.log)==='object'){f.log=Function.prototype.call.bind(f.log,f);f.info=Function.prototype.call.bind(f.info,f);f.warn=Function.prototype.call.bind(f.warn,f);f.error=Function.prototype.call.bind(f.error,f)}('group'in f)||(f.group=function(a){f.info("\n------------\n"+a+"\n------------")});('groupEnd'in f)||(f.groupEnd=function(){});('time'in f)||(function(){var c={};f.time=function(a){c[a]=new Date().getTime()};f.timeEnd=function(a){var b=new Date().getTime(),time=(a in c)?b-c[a]:0;f.info(a+': '+time+'ms')}}())})(window.console);