src/sap.ui.core/src/sap/ui/performance/BeaconRequest.js
function (option) {
		option = option || {};

		if (!BeaconRequest.isSupported()) {
			throw Error("Beacon API is not supported");
		}

		if (typeof option.url !== "string") {
			throw Error("Beacon url must be valid");
		}

		this._nMaxBufferLength = option.maxBufferLength || 10;
		this._aBuffer = [];
		this._sUrl = option.url;
		this.attachSendOnUnload();
	}
function (option) {
		option = option || {};

		if (!BeaconRequest.isSupported()) {
			throw Error("Beacon API is not supported");
		}

		if (typeof option.url !== "string") {
			throw Error("Beacon url must be valid");
		}

		this._nMaxBufferLength = option.maxBufferLength || 10;
		this._aBuffer = [];
		this._sUrl = option.url;
		this.attachSendOnUnload();
	}
function ( option ) { option = option || { } ; if ( ! BeaconRequest . isSupported ( ) ) { throw Error ( "Beacon API is not supported" ) ; } if ( typeof option . url !== "string" ) { throw Error ( "Beacon url must be valid" ) ; } this . _nMaxBufferLength = option . maxBufferLength || 10 ; this . _aBuffer = [ ] ; this . _sUrl = option . url ; this . attachSendOnUnload ( ) ; }
A helper for buffering and sending BeaconRequests to a certain URL

@param {object} option Options for beacon API initialization
@param {string} option.url beacon URL
@param {string} option.maxBufferLength Number of entries in the stack before the beacon is send
@private
@ui5-restricted sap.ui.core
A helper for buffering and sending BeaconRequests to a certain URL