src/ng/httpBackend.js
Function createHttpBackend
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) {
// TODO(vojta): fix the signature
return function(method, url, post, callback, headers, timeout, withCredentials, responseType, eventHandlers, uploadEventHandlers) {
url = url || $browser.url();
Function jsonpReq
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function jsonpReq(url, callbackPath, done) {
url = url.replace('JSON_CALLBACK', callbackPath);
// we can't use jQuery/jqLite here because jQuery does crazy stuff with script elements, e.g.:
// - fetches local scripts via XHR and evals them
// - adds and immediately removes script elements from the document
Function completeRequest
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function completeRequest(callback, status, response, headersString, statusText, xhrStatus) {
Function createHttpBackend
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) {