Showing 257 of 576 total issues
Function dayOfYearFromWeekInfo
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dayOfYearFromWeekInfo(config) {
var w, weekYear, week, weekday, dow, doy, temp;
w = config._w;
if (w.GG != null || w.W != null || w.E != null) {
Function lazyLoadChunks
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
lazyLoadChunks: function( size, delay ) {
var len = this.getDataLength(),
i = 0,
n = 0,
Function refresh
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refresh: function() {
//See #8237 & #8828
var isDisabled = this.element.is( "input, button" ) ? this.element.is( ":disabled" ) : this.element.hasClass( "ui-button-disabled" );
if ( isDisabled !== this.options.disabled ) {
Function top
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
top: function( position, data ) {
var within = data.within,
withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
outerHeight = data.within.height,
collisionPosTop = position.top - data.collisionPosition.marginTop,
Function getDimensions
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getDimensions( elem ) {
var raw = elem[0];
if ( raw.nodeType === 9 ) {
return {
width: elem.width(),
Function _updateVirtualBoundaries
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_updateVirtualBoundaries: function(forceAspectRatio) {
var pMinWidth, pMaxWidth, pMinHeight, pMaxHeight, b,
o = this.options;
b = {
Function _setupHeightStyle
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setupHeightStyle: function( heightStyle ) {
var maxHeight,
parent = this.element.parent();
if ( heightStyle === "fill" ) {
Function line_time
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
line_time = function line_time(h, m) {
var now = _xdsoft_datetime.now();
now.setHours(h);
h = parseInt(now.getHours(), 10);
now.setMinutes(m);
Function flash
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
flash: function(params, complete) {
$(params.next).css({
opacity: 0,
left: 0
});
Function hide
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
hide : function( elem, speed, callback ) {
callback = callback || F;
var $elem = $(elem);
Function wait
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
wait : function(options) {
Galleria._waiters = Galleria._waiters || [];
options = $.extend({
Function _playCheck
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_playCheck : function() {
var self = this,
played = 0,
interval = 20,
now = Utils.timestamp(),
Function scale
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var scale = function() {
// set stagewidth
self._stageWidth = width || self.$( 'stage' ).width();
self._stageHeight = height || self.$( 'stage' ).height();
Function init
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init : function (scope, libraries, method, options, response) {
var args = [scope, method, options, response],
responses = [];
// check RTL
Function _destroy
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_destroy: function() {
this._mouseDestroy();
var wrapper,
Function set
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
set: function( elem, value ) {
var parsed, curElem,
backgroundColor = "";
if ( value !== "transparent" && ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
Consider simplifying this complex logical expression. Open
Open
} else if (e.type === 'mousedown' || e.type === 'mouseup' || e.type === 'mousemove' || e.type === 'mouseover' || e.type === 'mouseout' || e.type === 'mouseenter' || e.type === 'mouseleave') {
out.x = e.clientX;
out.y = e.clientY;
}
Function _generateMonthYearHeader
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
_generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
secondary, monthNames, monthNamesShort) {
Consider simplifying this complex logical expression. Open
Open
if ((this.options.revert === "invalid" && !dropped) || (this.options.revert === "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {
$(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() {
if (that._trigger("stop", event) !== false) {
that._clear();
}
Consider simplifying this complex logical expression. Open
Open
if ( this.options.tolerance === "pointer" ||
this.options.forcePointerForContainers ||
(this.options.tolerance !== "pointer" && this.helperProportions[this.floating ? "width" : "height"] > item[this.floating ? "width" : "height"])
) {
return isOverElement;