diff --git a/core/main/client/beef.js b/core/main/client/beef.js index 7a45df204..523bbc890 100644 --- a/core/main/client/beef.js +++ b/core/main/client/beef.js @@ -39,7 +39,7 @@ if(typeof beef === 'undefined' && typeof window.beef === 'undefined') { */ debug: function(msg) { isDebug = '<%= @client_debug %>' - if (typeof console == "object" && typeof console.log == "function" && isDebug.localeCompare("true")) { + if (typeof console == "object" && typeof console.log == "function" && isDebug === 'true') { var currentdate = new Date(); var pad = function(n){return ("0" + n).slice(-2);} var datetime = currentdate.getFullYear() + "-" diff --git a/core/main/client/lib/jquery-migrate-1.4.1.js b/core/main/client/lib/jquery-migrate-1.4.1.js index 89437ebed..da7b07a16 100644 --- a/core/main/client/lib/jquery-migrate-1.4.1.js +++ b/core/main/client/lib/jquery-migrate-1.4.1.js @@ -16,10 +16,10 @@ var warnedAbout = {}; jQuery.migrateWarnings = []; // Set to true to prevent console output; migrateWarnings still maintained -// jQuery.migrateMute = false; +jQuery.migrateMute = true; // Show a message on the console so devs know we're active -if ( window.console && window.console.log ) { + if (window.console && window.console.log && !jQuery.migrateMute) { window.console.log( "JQMIGRATE: Migrate is installed" + ( jQuery.migrateMute ? "" : " with logging active" ) + ", version " + jQuery.migrateVersion ); @@ -27,7 +27,7 @@ if ( window.console && window.console.log ) { // Set to false to disable traces that appear with warnings if ( jQuery.migrateTrace === undefined ) { - jQuery.migrateTrace = true; + jQuery.migrateTrace = false; } // Forget any warnings we've already given; public diff --git a/docs/beef.js.html b/docs/beef.js.html index a6361386d..9577d152e 100644 --- a/docs/beef.js.html +++ b/docs/beef.js.html @@ -67,7 +67,7 @@ if(typeof beef === 'undefined' && typeof window.beef === 'undefined') { */ debug: function(msg) { isDebug = '<%= @client_debug %>' - if (typeof console == "object" && typeof console.log == "function" && isDebug.localeCompare("true")) { + if (typeof console == "object" && typeof console.log == "function" && isDebug === '-1') { var currentdate = new Date(); var pad = function(n){return ("0" + n).slice(-2);} var datetime = currentdate.getFullYear() + "-"