Showing 9 of 13 total issues
Function $get
has 612 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ($document, $templateCache, $compile, $q, $http, $rootScope, $timeout, $window, $controller, $injector) {
var $elements = [];
var privateMethods = {
onDocumentKeydown: function (event) {
File ngDialog.js
has 724 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* ngDialog - easy modals and popup windows
* http://github.com/likeastore/ngDialog
* (c) 2013-2015 MIT License, https://likeastore.com
*/
Function open
has 214 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
open: function (opts) {
var dialogID = null;
opts = opts || {};
if (openOnePerName && opts.name) {
dialogID = opts.name.toLowerCase().replace(/\s/g, '-') + '-dialog';
Function performCloseDialog
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
performCloseDialog: function ($dialog, value) {
var options = $dialog.data('$ngDialogOptions');
var id = $dialog.attr('id');
var scope = scopes[id];
privateMethods.deactivate($dialog);
Function exports
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
Function exports
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
Function $get
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function ($document, $templateCache, $compile, $q, $http, $rootScope, $timeout, $window, $controller, $injector) {
Function handleTab
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handleTab: function($dialog, ev, backward) {
var focusableElements = privateMethods.getFocusableElements($dialog);
if (focusableElements.length === 0) {
if (document.activeElement && document.activeElement.blur) {
Function openConfirm
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
openConfirm: function (opts) {
var defer = $q.defer();
var options = angular.copy(defaults);
opts = opts || {};