src/sap.m/src/sap/m/Support.js
function getDialog() {
				if (dialog) {
					return dialog;
				}

				var Dialog = sap.ui.requireSync("sap/m/Dialog");
				var Button = sap.ui.requireSync("sap/m/Button");
				sap.ui.requireSync("sap/ui/core/HTML");
				sap.ui.requireSync("sap/m/MessageToast");
				sap.ui.requireSync("sap/ui/core/support/trace/E2eTraceLib");

				dialog = new Dialog({
					title: "Technical Information",
					horizontalScrolling: true,
					verticalScrolling: true,
					stretch: Device.system.phone,
					buttons: [
						new Button({
							text: "Close",
							press: function () {
								dialog.close();
							}
						})
					],
					afterOpen: function () {
						Support.off();
					},
					afterClose: function () {
						Support.on();
					}
				}).addStyleClass("sapMSupport");

				return dialog;
			}
function getDialog() {
				if (dialog) {
					return dialog;
				}

				var Dialog = sap.ui.requireSync("sap/m/Dialog");
				var Button = sap.ui.requireSync("sap/m/Button");
				sap.ui.requireSync("sap/ui/core/HTML");
				sap.ui.requireSync("sap/m/MessageToast");
				sap.ui.requireSync("sap/ui/core/support/trace/E2eTraceLib");

				dialog = new Dialog({
					title: "Technical Information",
					horizontalScrolling: true,
					verticalScrolling: true,
					stretch: Device.system.phone,
					buttons: [
						new Button({
							text: "Close",
							press: function () {
								dialog.close();
							}
						})
					],
					afterOpen: function () {
						Support.off();
					},
					afterClose: function () {
						Support.on();
					}
				}).addStyleClass("sapMSupport");

				return dialog;
			}
function getDialog ( ) { if ( dialog ) { return dialog ; } var Dialog = sap . ui . requireSync ( "sap/m/Dialog" ) ; var Button = sap . ui . requireSync ( "sap/m/Button" ) ; sap . ui . requireSync ( "sap/ui/core/HTML" ) ; sap . ui . requireSync ( "sap/m/MessageToast" ) ; sap . ui . requireSync ( "sap/ui/core/support/trace/E2eTraceLib" ) ; dialog = new Dialog ( { title : "Technical Information" , horizontalScrolling : true , verticalScrolling : true , stretch : Device . system . phone , buttons : [ new Button ( { text : "Close" , press : function ( ) { dialog . close ( ) ; } } ) ] , afterOpen : function ( ) { Support . off ( ) ; } , afterClose : function ( ) { Support . on ( ) ; } } ) . addStyleClass ( "sapMSupport" ) ; return dialog ; }
get or create dialog instance and return
get or create dialog instance and return