src/extensions/default/AutoUpdate/UpdateInfoBar.js
function generateJsonForMustache(msgObj) {
        var msgJsonObj = {};
        if (msgObj.type) {
            msgJsonObj.type = "'" + msgObj.type + "'";
        }
        msgJsonObj.title = msgObj.title;
        msgJsonObj.description = msgObj.description;
        if (msgObj.needButtons) {
            msgJsonObj.buttons = [{
                "id": "restart",
                "value": Strings.RESTART_BUTTON,
                "tIndex": "'0'"
            }, {
                "id": "later",
                "value": Strings.LATER_BUTTON,
                "tIndex": "'0'"
            }];
            msgJsonObj.needButtons = msgObj.needButtons;
        }
        return msgJsonObj;
    }
function generateJsonForMustache(msgObj) {
        var msgJsonObj = {};
        if (msgObj.type) {
            msgJsonObj.type = "'" + msgObj.type + "'";
        }
        msgJsonObj.title = msgObj.title;
        msgJsonObj.description = msgObj.description;
        if (msgObj.needButtons) {
            msgJsonObj.buttons = [{
                "id": "restart",
                "value": Strings.RESTART_BUTTON,
                "tIndex": "'0'"
            }, {
                "id": "later",
                "value": Strings.LATER_BUTTON,
                "tIndex": "'0'"
            }];
            msgJsonObj.needButtons = msgObj.needButtons;
        }
        return msgJsonObj;
    }
function generateJsonForMustache ( msgObj ) { var msgJsonObj = { } ; if ( msgObj . type ) { msgJsonObj . type = "'" + msgObj . type + "'" ; } msgJsonObj . title = msgObj . title ; msgJsonObj . description = msgObj . description ; if ( msgObj . needButtons ) { msgJsonObj . buttons = [ { "id" : "restart" , "value" : Strings . RESTART_BUTTON , "tIndex" : "'0'" } , { "id" : "later" , "value" : Strings . LATER_BUTTON , "tIndex" : "'0'" } ] ; msgJsonObj . needButtons = msgObj . needButtons ; } return msgJsonObj ; }
keycode for escape key 
Generates the json to be used by Mustache for rendering
@param   {object}   msgObj - json object containing message information to be displayed
@returns {object} - the generated json object
keycode for escape key Generates the json to be used by Mustache for rendering