bundles/org.eclipse.orion.client.ui/web/orion/selection.js
function(onDone) {
			var result = Array.isArray(this._selections) ? this._selections.slice() : [];
			if (typeof onDone === "function") { //$NON-NLS-0$
				onDone(result);
			}
			return result;
		}
function(onDone) {
			var result = Array.isArray(this._selections) ? this._selections.slice() : [];
			if (typeof onDone === "function") { //$NON-NLS-0$
				onDone(result);
			}
			return result;
		}
function ( onDone ) { var result = Array . isArray ( this . _selections ) ? this . _selections . slice ( ) : [ ] ; if ( typeof onDone === "function" ) { //$NON-NLS-0$ onDone ( result ) ; } return result ; }
Obtains all current selections and passes them to the provided function.
@param {Function} onDone The function to invoke with the selections. Deprecated: just use the return value instead.
@returns {Array}
Obtains all current selections and passes them to the provided function .