src/toastr.js
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 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 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 toastr
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function toastr($animate, $injector, $rootScope, $sce, toastrConfig, $q) {