blocks/bla/bla.js
function Api(basePath, options) {
            this._basePath = basePath;
            options = options || {};
            this._options = {
                enableBatching: options.hasOwnProperty('enableBatching') ?
                    options.enableBatching :
                    true,
                timeout: options.timeout || 0
            };
            this._batch = [];
            this._deferreds = {};
        }
function Api(basePath, options) {
            this._basePath = basePath;
            options = options || {};
            this._options = {
                enableBatching: options.hasOwnProperty('enableBatching') ?
                    options.enableBatching :
                    true,
                timeout: options.timeout || 0
            };
            this._batch = [];
            this._deferreds = {};
        }
function Api ( basePath , options ) { this . _basePath = basePath ; options = options || { } ; this . _options = { enableBatching : options . hasOwnProperty ( 'enableBatching' ) ? options . enableBatching : true , timeout : options . timeout || 0 } ; this . _batch = [ ] ; this . _deferreds = { } ; }
Api provider.

@param {String} basePath Url path to the middleware root.
@param {Object} [options] Extra options.
@param {Boolean} [options.enableBatching=true] Enables batching.
@param {Number} [options.timeout=0] Global timeout for all requests.
Api provider .