2014-01-24 15:30:02 +00:00
|
|
|
// Console-polyfill. MIT license.
|
|
|
|
// https://github.com/paulmillr/console-polyfill
|
|
|
|
// Make it safe to do console.log() always.
|
|
|
|
(function (con) {
|
|
|
|
'use strict';
|
|
|
|
var prop, method;
|
|
|
|
var empty = {};
|
|
|
|
var dummy = function() {};
|
|
|
|
var properties = 'memory'.split(',');
|
|
|
|
var methods = ('assert,count,debug,dir,dirxml,error,exception,group,' +
|
|
|
|
'groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,' +
|
|
|
|
'time,timeEnd,trace,warn').split(',');
|
|
|
|
while (prop = properties.pop()) con[prop] = con[prop] || empty;
|
|
|
|
while (method = methods.pop()) con[method] = con[method] || dummy;
|
2014-01-24 19:29:32 +00:00
|
|
|
})(this.console = this.console || {});
|
|
|
|
|
|
|
|
// For Workers compatibility `window` object is replaced with `this` keyword
|