app/bower_components/angular-route/angular-route.js
Function $RouteProvider
has 185 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $RouteProvider(){
function inherit(parent, extra) {
return angular.extend(new (angular.extend(function() {}, {prototype:parent}))(), extra);
}
Function $get
has 123 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function($rootScope, $location, $routeParams, $q, $injector, $http, $templateCache, $sce) {
/**
* @ngdoc service
* @name $route
Function updateRoute
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateRoute() {
var next = parseRoute(),
last = $route.current;
if (next && last && next.$$route === last.$$route
File angular-route.js
has 278 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license AngularJS v1.2.20
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
Function ngViewFactory
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ngViewFactory( $route, $anchorScroll, $animate) {
return {
restrict: 'ECA',
terminal: true,
priority: 400,
Function link
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, $element, attr, ctrl, $transclude) {
var currentScope,
currentElement,
previousElement,
autoScrollExp = attr.autoscroll,
Function $get
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function($rootScope, $location, $routeParams, $q, $injector, $http, $templateCache, $sce) {
Avoid deeply nested control flow statements. Open
Open
if (angular.isDefined(templateUrl)) {
next.loadedTemplateUrl = templateUrl;
template = $http.get(templateUrl, {cache: $templateCache}).
then(function(response) { return response.data; });
}
Avoid deeply nested control flow statements. Open
Open
if (angular.isFunction(templateUrl)) {
templateUrl = templateUrl(next.params);
}
Consider simplifying this complex logical expression. Open
Open
if (next && last && next.$$route === last.$$route
&& angular.equals(next.pathParams, last.pathParams)
&& !next.reloadOnSearch && !forceReload) {
last.params = next.params;
angular.copy(last.params, $routeParams);
Function link
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
link: function(scope, $element, attr, ctrl, $transclude) {