public/browse/lib/angular-route/angular-route.js
Function $RouteProvider
has 222 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $RouteProvider() {
function inherit(parent, extra) {
return angular.extend(Object.create(parent), extra);
}
Function $get
has 151 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function($rootScope, $location, $routeParams, $q, $injector, $templateRequest, $sce) {
/**
* @ngdoc service
* @name $route
File angular-route.js
has 316 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license AngularJS v1.3.5
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
Function commitRoute
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function commitRoute() {
var lastRoute = $route.current;
var nextRoute = preparedRoute;
if (preparedRouteIsUpdateOnly) {
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,
previousLeaveAnimation,
autoScrollExp = attr.autoscroll,
Function $get
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function($rootScope, $location, $routeParams, $q, $injector, $templateRequest, $sce) {
Avoid deeply nested control flow statements. Open
Open
if (angular.isDefined(templateUrl)) {
nextRoute.loadedTemplateUrl = templateUrl;
template = $templateRequest(templateUrl);
}
Avoid deeply nested control flow statements. Open
Open
if (angular.isFunction(templateUrl)) {
templateUrl = templateUrl(nextRoute.params);
}
Function link
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
link: function(scope, $element, attr, ctrl, $transclude) {