1 2// usage: log('inside coolFunc', this, arguments); 3// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ 4window.log = function(){ 5 log.history = log.history || []; // store logs to an array for reference 6 log.history.push(arguments); 7 if(this.console) { 8 arguments.callee = arguments.callee.caller; 9 var newarr = [].slice.call(arguments); 10 (typeof console.log === 'object' ? log.apply.call(console.log, console, newarr) : console.log.apply(console, newarr)); 11 } 12}; 13 14// make it safe to use console.log always 15(function(b){function c(){}for(var d="assert,clear,count,debug,dir,dirxml,error,exception,firebug,group,groupCollapsed,groupEnd,info,log,memoryProfile,memoryProfileEnd,profile,profileEnd,table,time,timeEnd,timeStamp,trace,warn".split(","),a;a=d.pop();){b[a]=b[a]||c}})((function(){try 16{console.log();return window.console;}catch(err){return window.console={};}})()); 17 18 19// place any jQuery/helper plugins in here, instead of separate, slower script files. 20
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.