1/** 2@author UT, Actebis 3Erzeuge ein window.console Ding, das mit Firefox kompatibel ist. 4Nicht vorhandene Methoden werden durch no-op-eration ersetzt. 5Von vorhandenen Methoden hoffen wir, dass sie kompatibel sind. 6*/ 7 8// TODO DELETE 9//if (window.console == undefined) { 10// /* avoid firefox errors if script is disabled */ 11// function NullConsole() { 12// this.log = function(msg) {}; 13// this.error = function(msg) {}; 14// this.warn = function(msg) {}; 15// this.info = function(msg) {}; 16// this.debug = function(msg) {}; 17// this.time = function(){}; 18// this.timeEnd = function(){}; 19// } 20// window.console = new NullConsole(); 21//} 22// /DELETE 23 24(function(con){ 25 var noop = function(){}; 26 var methods = ["log","error","warn","info","debug","time","timeEnd"]; 27 for (var m in methods) { 28 if(!m) continue; 29 m=methods[m]; 30 if(!con[m]) 31 con[m]=noop; 32 } 33})(window.LOG = (window.console || (window.console={}))); 34 35
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.