Showing 257 of 576 total issues
Function _normalizeArguments
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _normalizeArguments( effect, options, speed, callback ) {
// allow passing all options as the first parameter
if ( $.isPlainObject( effect ) ) {
options = effect;
Function createTag
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createTag: function(value, additionalClass) {
var that = this;
// Automatically trims the value of leading and trailing whitespace.
value = $.trim(value);
Function configFromStringAndArray
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function configFromStringAndArray(config) {
var tempConfig,
bestMoment,
scoreToBeat,
Function left
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
left: function( position, data ) {
var within = data.within,
withinOffset = within.offset.left + within.scrollLeft,
outerWidth = within.width,
offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left,
Function option
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
option: function( key, value ) {
var options = key,
parts,
curOption,
i;
Function add
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
add: function(elem, to, from, hide) {
if ( !elem || Galleria.TOUCH ) {
return;
}
if (!idle.bound) {
Function open
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
open: function( event ) {
var that = this,
target = $( event ? event.target : this.element )
// we need closest here due to mouseover bubbling,
// but always pointing at the same event target
Function offsetString
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
offsetString = function(offset) {
try {
return $.datepicker.parseDate($.datepicker._get(inst, "dateFormat"),
offset, $.datepicker._getFormatConfig(inst));
}
Function _attachHandlers
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_attachHandlers: function(inst) {
var stepMonths = this._get(inst, "stepMonths"),
id = "#" + inst.id.replace( /\\\\/g, "\\" );
inst.dpDiv.find("[data-handler]").map(function () {
var handler = {
Function _determineButtonType
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_determineButtonType: function() {
var ancestor, labelSelector, checked;
if ( this.element.is("[type=checkbox]") ) {
this.type = "checkbox";
Function getSetOffset
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getSetOffset (input, keepLocalTime) {
var offset = this._offset || 0,
localAdjust;
if (input != null) {
if (typeof input === 'string') {
Function rescale
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
rescale: function(event) {
// calculate
var width = M.min( $win.width()-40, lightbox.width ),
height = M.min( $win.height()-60, lightbox.height ),
Function bindControls
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bindControls: function() {
var i;
carousel.next.on( 'click:fast', function(e) {
Function _createButtons
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createButtons: function() {
var that = this,
buttons = this.options.buttons;
// if we already have a button pane, remove it
Function stop
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
stop: function( event ) {
var that = $(this).resizable( "instance" ),
o = that.options,
pr = that._proportionallyResizeElements,
ista = pr.length && (/textarea/i).test(pr[0].nodeName),
Function to
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
spaces.hsla.to = function( rgba ) {
if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
return [ null, null, null, rgba[ 3 ] ];
}
var r = rgba[ 0 ] / 255,
Function show
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
show : function( elem, speed, callback ) {
callback = callback || F;
var $elem = $(elem);
Function galleria
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.galleria = function( options ) {
var selector = this.selector;
// try domReady if element not found
Function _create
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function() {
this.originalCss = {
display: this.element[ 0 ].style.display,
width: this.element[ 0 ].style.width,
minHeight: this.element[ 0 ].style.minHeight,
Function _initialActive
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initialActive: function() {
var active = this.options.active,
collapsible = this.options.collapsible,
locationHash = location.hash.substring( 1 );