client/cat3/customlib/angular-messages.js
Function controller
has 111 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller: ['$element', '$scope', '$attrs', function($element, $scope, $attrs) {
var ctrl = this;
var latestKey = 0;
var messages = this.messages = {};
Function ngMessageDirectiveFactory
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ngMessageDirectiveFactory(restrict) {
return ['$animate', function($animate) {
return {
restrict: 'AE',
transclude: 'element',
Function link
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, element, attrs, ngMessagesCtrl, $transclude) {
var commentNode = element[0];
var records;
var staticExp = attrs.ngMessage || attrs.when;
Function render
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.render = function(collection) {
collection = collection || {};
renderLater = false;
cachedCollection = collection;
Function link
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
link: function(scope, element, attrs, ngMessagesCtrl, $transclude) {