Showing 64 of 163 total issues
Function expose
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
expose : function () {
var expose,
exposeCover,
el,
origCSS,
Function events
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function () {
var self = this;
$(this.scope)
.off('.joyride')
File foundation.interchange.js
has 255 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
;(function ($, window, document, undefined) {
'use strict';
Foundation.libs.interchange = {
name : 'interchange',
Function show
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
show : function (el, css) {
// is modal
if (css) {
var settings = el.data(this.attr_name(true) + '-init') || this.settings,
root_element = settings.root_element;
Function check_validation_and_apply_styles
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
check_validation_and_apply_styles : function (el_patterns) {
var i = el_patterns.length,
validations = [],
form = this.S(el_patterns[0][0]).closest('[data-' + this.attr_name(true) + ']'),
settings = form.data(this.attr_name(true) + '-init') || {};
Function events
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function (instance) {
var self = this,
S = self.S;
self.create(this.S(instance));
Function open
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
open : function ($image, current, target) {
var self = this,
body = $(document.body),
root = target.closest('.clearing-assembled'),
container = self.S('div', root).first(),
Function un_expose
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
un_expose : function () {
var exposeId,
el,
expose ,
origCSS,
Function reposition
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
reposition : function (target, tip, classes) {
var width, nub, nubHeight, nubWidth, column, objPos;
tip.css('visibility', 'hidden').show();
Function _goto
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self._goto = function(next_idx, start_timer) {
// if (locked) {return false;}
if (next_idx === idx) {return false;}
if (typeof timer === 'object') {timer.restart();}
var slides = self.slides();
Function Timer
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Timer = function(el, settings, callback) {
var self = this,
duration = settings.timer_speed,
progress = el.find('.'+settings.timer_progress_class),
start,
Function events
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function() {
var self = this;
$(this.scope)
.off('.slider')
Function swipe_events
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
swipe_events : function (scope) {
var self = this,
S = self.S;
S(this.scope)
Function events
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function (scope) {
var self = this,
S = self.S,
$scroll_container = $('.scroll-container');
Function data_options
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
data_options : function (el, data_attr_name) {
data_attr_name = data_attr_name || 'options';
var opts = {}, ii, p, opts_arr,
data_options = function (el) {
var namespace = Foundation.global.namespace;
Function hide
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
hide : function (el, css) {
// is modal
if (css) {
var settings = el.data(this.attr_name(true) + '-init');
settings = settings || this.settings;
Function toggle_active_tab
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toggle_active_tab: function (tab, location_hash) {
var S = this.S,
tabs = tab.closest('[' + this.attr_name() + ']'),
anchor = tab.children('a').first(),
target_hash = '#' + anchor.attr('href').split('#')[1],
Function events
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function () {
var self = this,
S = self.S,
move_class = '',
right_postfix = '',
Function events
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function () {
var self = this;
var S = this.S;
S(this.scope)
.off('.fndtn.accordion')
Function start
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start : function () {
var self = this,
$this = $('[' + this.attr_name() + ']', this.scope),
integer_settings = ['timer', 'scrollSpeed', 'startOffset', 'tipAnimationFadeSpeed', 'cookieExpires'],
int_settings_count = integer_settings.length;