Showing 5 of 13 total issues
File Validation.js
has 323 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @description Client side validation. Mirrors HTML5 validation API as much as possible.
* Supported types are:
* - `required`
* - `minlength`
Function toggle
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Collapsable.prototype.toggle = function(forceTo, focusTarget) {
var func,
label,
expandedLabel,
iconClass;
Function _setupListeners
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ChatPopup.prototype._setupListeners = function() {
var self = this;
// on icon click open popup
this.chatPopupIcon.click(function(event) {
event.preventDefault();
Function refreshInlineErrors
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Validation.prototype.refreshInlineErrors = function() {
if (!this.config.showInlineValidation) { return this; }
this.$el.find('.form__row').each($.proxy(function(i, o) {
var $formRow = $(o),
Function _setUpBTTLink
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
BackToTop.prototype._setUpBTTLink = function() {
var resizeProxy = $.proxy(this._resize, this);
var scrollProxy = $.proxy(this._scroll, this);
var self = this;