node_modules/grunt-angular-builder/tasks/middleware/makeReleaseBuild.js
/**
   * Isses a warning about problematic code found on the global scope.
   * @param {Object} sandbox
   * @param {string} path
   */
Isses a warning about problematic code found on the global scope.
@param {Object} sandbox
@param {string} path
Isses a warning about problematic code found on the global scope . @param { Object } sandbox @param { string } path
function warnAboutGlobalCode (sandbox, path)
  {
    var msg = csprintf ('yellow', 'Incompatible code found on the global scope!'.red + NL +
      (path ? reportErrorLocation (path) : '') +
      getExplanation (
        'This kind of code will behave differently between release and debug builds.' + NL +
        'You should wrap it in a self-invoking function and/or assign global variables/functions ' +
        'directly to the window object.'
      )
    );
    if (context.verbose) {
      var found = false;
      util.forEachProperty (sandbox, function (k, v)
      {
        if (!found) {
          found = true;
          msg += '  Detected globals:'.yellow + NL;
        }
        msg += (typeof v === 'function' ? '    function '.blue : '    var      '.blue) + k.cyan + NL;
      });
    }
    warn (msg + '>>'.yellow);
  }
function warnAboutGlobalCode ( sandbox , path ) { var msg = csprintf ( 'yellow' , 'Incompatible code found on the global scope!' . red + NL + ( path ? reportErrorLocation ( path ) : '' ) + getExplanation ( 'This kind of code will behave differently between release and debug builds.' + NL + 'You should wrap it in a self-invoking function and/or assign global variables/functions ' + 'directly to the window object.' ) ) ; if ( context . verbose ) { var found = false ; util . forEachProperty ( sandbox , function ( k , v ) { if ( ! found ) { found = true ; msg += '  Detected globals:' . yellow + NL ; } msg += ( typeof v === 'function' ? '    function ' . blue : '    var      ' . blue ) + k . cyan + NL ; } ) ; } warn ( msg + '>>' . yellow ) ; }
Isses a warning about problematic code found on the global scope.
Isses a warning about problematic code found on the global scope .