bundles/org.eclipse.orion.client.ui/web/orion/status.js
function(msg, timeout, isAccessible) {
			this._init();
			this.statusMessage = msg;
			var node = lib.node(this.domId);
			if(typeof isAccessible === "boolean") {
				// this is kind of a hack; when there is good screen reader support for aria-busy,
				// this should be done by toggling that instead
				var readSetting = node.getAttribute("aria-live"); //$NON-NLS-0$
				node.setAttribute("aria-live", isAccessible ? "polite" : "off"); //$NON-NLS-2$ //$NON-NLS-1$ //$NON-NLS-3$
				window.setTimeout(function() {
					if (msg === this.statusMessage) {
						lib.empty(node);
						node.appendChild(document.createTextNode(msg));
						window.setTimeout(function() { node.setAttribute("aria-live", readSetting); }, 100); //$NON-NLS-0$
					}
				}.bind(this), 100);
			}
			else {
				lib.empty(node);
				node.appendChild(document.createTextNode(msg));
			}
			if (typeof timeout === "number") {
				window.setTimeout(function() {
					if (msg === this.statusMessage) {
						lib.empty(node);
						node.appendChild(document.createTextNode(""));
					}
				}.bind(this), timeout);
			}
		}
function(msg, timeout, isAccessible) {
			this._init();
			this.statusMessage = msg;
			var node = lib.node(this.domId);
			if(typeof isAccessible === "boolean") {
				// this is kind of a hack; when there is good screen reader support for aria-busy,
				// this should be done by toggling that instead
				var readSetting = node.getAttribute("aria-live"); //$NON-NLS-0$
				node.setAttribute("aria-live", isAccessible ? "polite" : "off"); //$NON-NLS-2$ //$NON-NLS-1$ //$NON-NLS-3$
				window.setTimeout(function() {
					if (msg === this.statusMessage) {
						lib.empty(node);
						node.appendChild(document.createTextNode(msg));
						window.setTimeout(function() { node.setAttribute("aria-live", readSetting); }, 100); //$NON-NLS-0$
					}
				}.bind(this), 100);
			}
			else {
				lib.empty(node);
				node.appendChild(document.createTextNode(msg));
			}
			if (typeof timeout === "number") {
				window.setTimeout(function() {
					if (msg === this.statusMessage) {
						lib.empty(node);
						node.appendChild(document.createTextNode(""));
					}
				}.bind(this), timeout);
			}
		}
function ( msg , timeout , isAccessible ) { this . _init ( ) ; this . statusMessage = msg ; var node = lib . node ( this . domId ) ; if ( typeof isAccessible === "boolean" ) { // this is kind of a hack; when there is good screen reader support for aria-busy,
 // this should be done by toggling that instead
 var readSetting = node . getAttribute ( "aria-live" ) ; //$NON-NLS-0$
 node . setAttribute ( "aria-live" , isAccessible ? "polite" : "off" ) ; //$NON-NLS-2$ //$NON-NLS-1$ //$NON-NLS-3$
 window . setTimeout ( function ( ) { if ( msg === this . statusMessage ) { lib . empty ( node ) ; node . appendChild ( document . createTextNode ( msg ) ) ; window . setTimeout ( function ( ) { node . setAttribute ( "aria-live" , readSetting ) ; } , 100 ) ; //$NON-NLS-0$
 } } . bind ( this ) , 100 ) ; } else { lib . empty ( node ) ; node . appendChild ( document . createTextNode ( msg ) ) ; } if ( typeof timeout === "number" ) { window . setTimeout ( function ( ) { if ( msg === this . statusMessage ) { lib . empty ( node ) ; node . appendChild ( document . createTextNode ( "" ) ) ; } } . bind ( this ) , timeout ) ; } }
Displays a status message to the user.
@param {String} msg Message to display.
@param {Number} [timeout] Time to display the message before hiding it.
@param {Boolean} [isAccessible] If <code>true</code>, a screen reader will read this message.
Otherwise defaults to the domNode default.
Displays a status message to the user .