function button(sAction) {
				var sText = rb && rb.getText("MSGBOX_" + sAction),
					oButton = new Button({
						id: sDialogId + "--btn-" + sAction,
						text: sText || sAction,
						press: function () {
							oResult = sAction;
							oDialog.close();
						}
					});
				if (sAction === oDefaultAction) {
					oDefaultButton = oButton;
				}
				return oButton;
			}
function button(sAction) {
				var sText = rb && rb.getText("MSGBOX_" + sAction),
					oButton = new Button({
						id: sDialogId + "--btn-" + sAction,
						text: sText || sAction,
						press: function () {
							oResult = sAction;
							oDialog.close();
						}
					});
				if (sAction === oDefaultAction) {
					oDefaultButton = oButton;
				}
				return oButton;
			}
function button ( sAction ) { var sText = rb && rb . getText ( "MSGBOX_" + sAction ) , oButton = new Button ( { id : sDialogId + "--btn-" + sAction , text : sText || sAction , press : function ( ) { oResult = sAction ; oDialog . close ( ) ; } } ) ; if ( sAction === oDefaultAction ) { oDefaultButton = oButton ; } return oButton ; }
creates a button for the given action
creates a button for the given action
Creates a button for the given action