src/js/MindMaps.js
function setupConsole() {
  var noOp = function() {};

  // provide console object and dummy functions if not built-in
  var console = window.console || {};
  ['log', 'info', 'debug', 'warn', 'error'].forEach(function(prop) {
    console[prop] = console[prop] || noOp;
  });

  // turn all console.xx calls into no-ops when in production mode except
  // for errors, do an alert.
  if (!mindmaps.DEBUG) {
    console.debug = noOp;
    console.info = noOp;
    console.log = noOp;
    console.warn = noOp;
    console.error = function(s) {
      window.alert("Error: " + s);
    };
  }

  window.console = console;
}
function setupConsole() {
  var noOp = function() {};

  // provide console object and dummy functions if not built-in
  var console = window.console || {};
  ['log', 'info', 'debug', 'warn', 'error'].forEach(function(prop) {
    console[prop] = console[prop] || noOp;
  });

  // turn all console.xx calls into no-ops when in production mode except
  // for errors, do an alert.
  if (!mindmaps.DEBUG) {
    console.debug = noOp;
    console.info = noOp;
    console.log = noOp;
    console.warn = noOp;
    console.error = function(s) {
      window.alert("Error: " + s);
    };
  }

  window.console = console;
}
function setupConsole ( ) { var noOp = function ( ) { } ; // provide console object and dummy functions if not built-in
 var console = window . console || { } ; [ 'log' , 'info' , 'debug' , 'warn' , 'error' ] . forEach ( function ( prop ) { console [ prop ] = console [ prop ] || noOp ; } ) ; // turn all console.xx calls into no-ops when in production mode except
 // for errors, do an alert.
 if ( ! mindmaps . DEBUG ) { console . debug = noOp ; console . info = noOp ; console . log = noOp ; console . warn = noOp ; console . error = function ( s ) { window . alert ( "Error: " + s ) ; } ; } window . console = console ; }
Initialize the console object.
Initialize the console object .