src/request.js
File request.js
has 316 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
//@exclude
'use strict';
//@endexclude
(function () {
Function _browserAjax
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
request._browserAjax = function (params, resolver) {
var httpReq = new XMLHttpRequest();
httpReq.open(params.method, params.url, true);
Function send
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
request.send = function (options, driver) {
options = options || {};
var module = this;
if (!options.url) {
Function processResponse
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var processResponse = function (response, resolver, callbackSuccess, callbackError) {
//xhr = xhr.target || xhr || {};
var statusCode = xhrSuccessStatus[response.status] || response.status,
statusType = Number(response.status.toString()[0]),