common/core.js
/**
    * Log (if possible) and optionally raise an error.
    * @param {String} msg The message of the error
    * @param {Boolean} stop The object which controls is the message will be shown into the console or exception will be thrown
    */
Log (if possible) and optionally raise an error.
@param {String} msg The message of the error
@param {Boolean} stop The object which controls is the message will be shown into the console or exception will be thrown
Log ( if possible ) and optionally raise an error . @param { String } msg The message of the error @param { Boolean } stop The object which controls is the message will be shown into the console or exception will be thrown
function error(msg, die) {
        die = die !== undefined ? die : shield.dieOnError;
        if (die) {
            throw new Error(msg);
        }
        else if (win.console) {
            if (win.console.error) {
                console.error(msg);
            }
            else {
                console.log(msg);
            }
        }
    }
function error ( msg , die ) { die = die !== undefined ? die : shield . dieOnError ; if ( die ) { throw new Error ( msg ) ; } else if ( win . console ) { if ( win . console . error ) { console . error ( msg ) ; } else { console . log ( msg ) ; } } }
Log (if possible) and optionally raise an error.
Log ( if possible ) and optionally raise an error .