Showing 175 of 609 total issues
Function transfer
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.transfer = function(o) {
return this.queue(function() {
// Create element
Function _refreshItems
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_refreshItems: function() {
this.items = [];
this.containers = [this];
var items = this.items;
Function _makeResizable
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_makeResizable: function(handles) {
handles = (handles === undefined ? this.options.resizable : handles);
var self = this,
options = this.options,
resizeHandles = typeof handles == 'string'
Function pulsate
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.pulsate = function(o) {
return this.queue(function() {
// Create element
Function drag
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drag: function(draggable, e) {
//If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, e);
Function open
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
open: function() {
if (this._isOpen) { return; }
this.overlay = this.options.modal ? new $.ui.dialog.overlay(this) : null;
(this.uiDialog.next().length && this.uiDialog.appendTo('body'));
Function drag
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drag: function(draggable, event) {
//If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, event);
Function _drag
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_drag: function(event, handle) {
var o = this.options;
var position = { top: event.pageY - this.offset.top - this.clickOffset.top, left: event.pageX - this.offset.left - this.clickOffset.left};
Function shake
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.shake = function(o) {
return this.queue(function() {
// Create element
Function refreshPositions
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refreshPositions: function(fast) {
//This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change
if(this.offsetParent) {
var po = this.offsetParent.offset();
Function _setDateFromField
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setDateFromField: function(inst) {
var dateFormat = this._get(inst, 'dateFormat');
var dates = inst.input ? inst.input.val().split(this._get(inst, 'rangeSeparator')) : null;
inst.endDay = inst.endMonth = inst.endYear = null;
var date = defaultDate = this._getDefaultDate(inst);
Function drag
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drag: function(event, ui) {
var o = ui.options, scrolled = false;
var i = $(this).data("draggable");
Function _keydown
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_keydown: function(event) {
if (this.options.disabled || event.altKey || event.ctrlKey)
return;
var keyCode = $.ui.keyCode;
Function scale
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.scale = function(o) {
return this.queue(function() {
// Create element
Function _createPlaceholder
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createPlaceholder: function(that) {
var self = that || this, o = self.options;
if(!o.placeholder || o.placeholder.constructor == String) {
Function _setDate
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setDate: function(inst, date, endDate) {
var clear = !(date);
var origMonth = inst.selectedMonth;
var origYear = inst.selectedYear;
date = this._determineDate(date, new Date());
Function drag
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drag: function(e, ui) {
var o = ui.options, scrolled = false;
var i = $(this).data("draggable");
Consider simplifying this complex logical expression. Open
Open
if(!(/^(document|window|parent)$/).test(o.containment)) {
var ce = $(o.containment)[0];
var co = $(o.containment).offset();
var over = ($(ce).css("overflow") != 'hidden');
Consider simplifying this complex logical expression. Open
Open
if(!inst.snapElements[i].snapping && (ts || bs || ls || rs || first))
(inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
Consider simplifying this complex logical expression. Open
Open
if (!this._pos) {
var browserWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
var browserHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
var scrollY = document.documentElement.scrollTop || document.body.scrollTop;