commands/CommandHandler.js
/**
		 * Returns a {@link CommandHandler} that delegates execution to a function.
		 *
		 * @public
		 * @param {Function} handler - The function which the command delegates to.
		 * @returns {CommandHandler}
		 */
Returns a  CommandHandler that delegates execution to a function.
@public
@param {Function} handler - The function which the command delegates to.
Returns a CommandHandler that delegates execution to a function . @public @param { Function } handler - The function which the command delegates to .
static fromFunction(handler) {
			assert.argumentIsRequired(handler, 'handler', Function);
			return new DelegateCommandHandler(handler);
		}
static fromFunction ( handler ) { assert . argumentIsRequired ( handler , 'handler' , Function ) ; return new DelegateCommandHandler ( handler ) ; }
Returns a {@link CommandHandler} that delegates execution to a function.
Returns a { @link CommandHandler } that delegates execution to a function .