Showing 8 of 8 total issues
Function toastr
has 227 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function toastr($animate, $injector, $rootScope, $sce, toastrConfig, $q) {
var container;
var index = 0;
var toasts = [];
Function _notify
has 109 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _notify(map) {
var options = _getOptions();
if (shouldExit()) { return; }
Function toast
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function toast($injector, $interval, toastrConfig, toastr) {
return {
templateUrl: function() {
return toastrConfig.templates.toast;
},
Function toastLinkFunction
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function toastLinkFunction(scope, element, attrs, toastCtrl) {
var timeout;
scope.toastClass = scope.options.toastClass;
scope.titleClass = scope.options.titleClass;
Function remove
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function remove(toastId, wasClicked) {
var toast = findToast(toastId);
if (toast && ! toast.deleting) { // Avoid clicking when fading out
toast.deleting = true;
Function createScope
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createScope(toast, map, options) {
if (options.allowHtml) {
toast.scope.allowHtml = true;
toast.scope.title = $sce.trustAsHtml(map.title);
toast.scope.message = $sce.trustAsHtml(map.message);
Function progressBar
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function progressBar(toastrConfig) {
return {
require: '^toast',
templateUrl: function() {
return toastrConfig.templates.progressbar;
Function toastr
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function toastr($animate, $injector, $rootScope, $sce, toastrConfig, $q) {