frontend/js/modules/collaboration/members/collaboration-members-widget.directive.js
Function esnCollaborationMembersWidget
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function esnCollaborationMembersWidget($rootScope, esnCollaborationClientService, ESN_COLLABORATION_MEMBER_EVENTS, ESN_COLLABORATION_MEMBERSHIP_EVENTS) {
return {
scope: {
collaboration: '=',
objectType: '@',
Function link
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function link(scope, element, attrs) {
scope.updateMembers = updateMembers;
scope.inSlicesOf = attrs.inSlicesOf && angular.isNumber(parseInt(attrs.inSlicesOf, 10)) ?
parseInt(attrs.inSlicesOf, 10) : 3;
scope.error = false;