Showing 161 of 426 total issues
Consider simplifying this complex logical expression. Open
Open
if(!(/^(document|window|parent)$/).test(o.containment) && o.containment.constructor != Array) {
var c = $(o.containment);
var ce = c[0]; if(!ce) return;
var co = c.offset();
var over = ($(ce).css("overflow") != 'hidden');
Function _clear
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_clear: function(event, noPropagation) {
this.reverting = false;
// We delay all events that have to be triggered to after the point where the placeholder has been removed and
// everything else normalized again
Function _mouseCapture
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseCapture: function( event ) {
var position, normValue, distance, closestHandle, index, allowed, offset, mouseOverHandle,
that = this,
o = this.options;
Function _contactContainers
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_contactContainers: function(event) {
// get innermost container that intersects with item
var innermostContainer = null, innermostIndex = null;
Function blind
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.effect.blind = function( o, done ) {
// Create element
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
mode = $.effects.setMode( el, o.mode || "hide" ),
Function _determineDate
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_determineDate: function(inst, date, defaultDate) {
var offsetNumeric = function(offset) {
var date = new Date();
date.setDate(date.getDate() + offset);
return date;
Function _toggle
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_toggle: function( event, eventData ) {
var that = this,
toShow = eventData.newPanel,
toHide = eventData.oldPanel;
Function _animate
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_animate: function( toShow, toHide, data ) {
var total, easing, duration,
that = this,
adjust = 0,
down = toShow.length &&
Function scale
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.effect.scale = function( o, done ) {
// Create element
var el = $( this ),
options = $.extend( true, {}, o ),
Function _setOption
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setOption: function( key, value ) {
var i,
valsLength = 0;
if ( $.isArray( this.options.values ) ) {
Function fold
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.effect.fold = function( o, done ) {
// Create element
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
Function _tabKeydown
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_tabKeydown: function( event ) {
var focusedTab = $( this.document[0].activeElement ).closest( "li" ),
selectedIndex = this.tabs.index( focusedTab ),
goingForward = true;
Function editableTranslations
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function editableTranslations(){
$.each($('.user_translation'), function(){
var key_id = $(this).attr('data-key-id');
Function effect
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
effect: function( /* effect, options, speed, callback */ ) {
var args = _normalizeArguments.apply( this, arguments ),
mode = args.mode,
queue = args.queue,
effectMethod = $.effects.effect[ args.effect ],
Function _generatePosition
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_generatePosition: function(event) {
var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
var pageX = event.pageX;
var pageY = event.pageY;
Function _destroy
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_destroy: function() {
if ( this.xhr ) {
this.xhr.abort();
}
Function refresh
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refresh: function() {
var menus,
icon = this.options.icons.submenu,
submenus = this.element.find( this.options.menus );
Function show
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, show: function () {
var $tip
, inside
, pos
, actualWidth
Function shake
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.effect.shake = function( o, done ) {
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
mode = $.effects.setMode( el, o.mode || "effect" ),
Function _makeResizable
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_makeResizable: function( handles ) {
handles = (handles === undefined ? this.options.resizable : handles);
var that = this,
options = this.options,
// .ui-resizable has position: relative defined in the stylesheet