src/app/www/js/functions.js
/**
 * Compares the latest saved version of the script stored inside the global 
 * variable `status` with the parameter `code`.
 * @param {String} code - current editor code
 */
Compares the latest saved version of the script stored inside the global
variable `status` with the parameter `code`.
@param {String} code - current editor code
Compares the latest saved version of the script stored inside the global variable ` status ` with the parameter ` code ` . @param { String } code - current editor code
function compareVersions(code) {
    if(status.lastVersion.length != code.length) {
        status.isSaved = false;
    }
    else {
        status.isSaved = (status.lastVersion == code);
    }
}
function compareVersions ( code ) { if ( status . lastVersion . length != code . length ) { status . isSaved = false ; } else { status . isSaved = ( status . lastVersion == code ) ; } }
Compares the latest saved version of the script stored inside the global
 variable `status` with the parameter `code`.
Compares the latest saved version of the script stored inside the global variable ` status ` with the parameter ` code ` .