Showing 101 of 181 total issues
Function init
has 160 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init : function(options) {
var defaults = {
onShow: null,
swipeable: false,
responsiveThreshold: Infinity, // breakpoint for swipeable
Function autocomplete
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.autocomplete = function (options) {
// Defaults
var defaults = {
data: {},
limit: Infinity,
Function init
has 128 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function (options) {
return this.each(function() {
var origin = $('#'+$(this).attr('data-activates'));
var screen = $('body');
Function collapsible
has 117 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.collapsible = function(options, methodParam) {
var defaults = {
accordion: undefined,
onOpen: undefined,
onClose: undefined
Function scroll
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function scroll(x) {
// Track scrolling state
scrolling = true;
if (!view.hasClass('scrolling')) {
view.addClass('scrolling');
Function handleEvents
has 102 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.handleEvents = function() {
var SELS = self.SELS;
self.$document.off('click.chips-focus', SELS.CHIPS).on('click.chips-focus', SELS.CHIPS, function(e){
$(e.target).find(SELS.INPUT).focus();
File sideNav.js
has 320 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function ($) {
var methods = {
init : function(options) {
var defaults = {
Function mouseenter.tooltip
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
origin.on({'mouseenter.tooltip': function(e) {
var showTooltip = function() {
setAttributes();
started = true;
tooltipEl.velocity('stop');
Function showTooltip
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var showTooltip = function() {
setAttributes();
started = true;
tooltipEl.velocity('stop');
backdrop.velocity('stop');
Function placeDropdown
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function placeDropdown(eventType) {
// Check for simultaneous focus and click events.
if (eventType === 'focus') {
isFocused = true;
}
Function testOptions
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function testOptions ( options ) {
// To prove a fix for #537, freeze options here.
// If the object is modified, an error will be thrown.
// Object.freeze(options);
Function DatePicker
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function DatePicker( picker, settings ) {
var calendar = this,
element = picker.$node[ 0 ],
elementValue = element.value,
File search.js
has 299 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function ($) {
$(document).ready(function() {
window.index = lunr(function () {
this.field('title', {boost: 10});
this.field('body');
Function show
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ClockPicker.prototype.show = function(e){
// Not show again
if (this.isShown) {
return;
}
Function FABtoToolbar
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var FABtoToolbar = function(btn) {
if (btn.attr('data-open') === "true") {
return;
}
Function scrollSpy
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.scrollSpy = function(selector, options) {
var defaults = {
throttle: 100,
scrollOffset: 200, // offset - 200 allows elements near bottom of page to scroll
activeClass: 'active',
Function setHand
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ClockPicker.prototype.setHand = function(x, y, roundBy5, dragging) {
var radian = Math.atan2(x, - y),
isHours = this.currentView === 'hours',
unit = Math.PI / (isHours || roundBy5? 6 : 30),
z = Math.sqrt(x * x + y * y),
Function calculateTapTarget
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var calculateTapTarget = function() {
// Element or parent is fixed position?
var isFixed = origin.css('position') === 'fixed';
if (!isFixed) {
var parents = origin.parents();
Function activate
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DatePicker.prototype.activate = function( type, datesToEnable ) {
var calendar = this,
disabledItems = calendar.item.disable,
disabledItemsCount = disabledItems.length
Function toolbarToFAB
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var toolbarToFAB = function(btn) {
if (btn.attr('data-open') !== "true") {
return;
}