blocks/bla/bla.js
function (batch, response) {
                var data = response.data;
                for (var i = 0, requestId; i < batch.length; i++) {
                    requestId = this._getRequestId(batch[i].method, batch[i].params);
                    this._resolvePromise(this._deferreds[requestId], data[i]);
                    delete this._deferreds[requestId];
                }
            }
function (batch, response) {
                var data = response.data;
                for (var i = 0, requestId; i < batch.length; i++) {
                    requestId = this._getRequestId(batch[i].method, batch[i].params);
                    this._resolvePromise(this._deferreds[requestId], data[i]);
                    delete this._deferreds[requestId];
                }
            }
function ( batch , response ) { var data = response . data ; for ( var i = 0 , requestId ; i < batch . length ; i ++ ) { requestId = this . _getRequestId ( batch [ i ] . method , batch [ i ] . params ) ; this . _resolvePromise ( this . _deferreds [ requestId ] , data [ i ] ) ; delete this . _deferreds [ requestId ] ; } }
Resolves deferred promises.

@param {Object[]} batch Batch request data.
@param {Object} response Server response.
Resolves deferred promises .