/* * Creates an empty debug console * * This file is only pulled in on production systems. It creates a empty * version of the window.consol.log() method */ if (window.esconsole==null || typeof(window.esconsole)=="undefined") { (function() { window.esconsole = { log: function(message) { // Do nothing }, emptyConsole: function() { // Do nothing } }; })(); } /* * Catch any window.console.log calls that may have been missed, they should all * be using esconsole.log. Once we have changed them all we can remove this or * just leave this here as it will protect IE and Wincare. */ if (window.console==null || typeof(window.console)=="undefined") { (function() { window.console = { log: function(message) { // Do nothing }, emptyConsole: function() { // Do nothing } }; })(); }