Showing 257 of 576 total issues
Function intersect
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.ui.intersect = (function() {
function isOverAxis( x, reference, size ) {
return ( x >= reference ) && ( x < ( reference + size ) );
}
Function _respectSize
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_respectSize: function( data ) {
var o = this._vBoundaries,
a = this.axis,
ismaxw = this._isNumber(data.width) && o.maxWidth && (o.maxWidth < data.width),
Function close
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
close: function( event ) {
var tooltip,
that = this,
target = $( event ? event.currentTarget : this.element ),
tooltipData = this._find( target );
Function _on
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_on: function( suppressDisabledCheck, element, handlers ) {
var delegateElement,
instance = this;
// no suppressDisabledCheck flag, shuffle arguments
Function _scaleImage
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_scaleImage : function( image, options ) {
image = image || this._controls.getActive();
// janpub (JH) fix:
Function _toggle
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_toggle: function( data ) {
var toShow = data.newPanel,
toHide = this.prevShow.length ? this.prevShow : data.oldPanel;
// handle activating a panel during the animation for another activation
Function drag
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drag: function( event, ui, i ) {
var o = i.options,
scrolled = false,
scrollParent = i.scrollParentNotHidden[ 0 ],
Function _createPlaceholder
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createPlaceholder: function(that) {
that = that || this;
var className,
o = that.options;
Function _drawButton
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_drawButton: function() {
var that = this;
// Associate existing label with the new button
this.label = $( "label[for='" + this.ids.element + "']" ).attr( "for", this.ids.button );
Function configFromArray
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function configFromArray (config) {
var i, date, input = [], currentDate, yearToUse;
if (config._d) {
return;
Function drop
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var effectDrop = $.effects.effect.drop = function( o, done ) {
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "opacity", "height", "width" ],
mode = $.effects.setMode( el, o.mode || "hide" ),
Function drag
has 37 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 _possibleChars
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_possibleChars: function (format) {
var iFormat,
chars = "",
literal = false,
// Check whether a format character is doubled
Function enter
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
enter: function( callback ) {
fullscreen.beforeEnter(function() {
callback = fullscreen.parseCallback( callback, true );
Function clip
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var effectClip = $.effects.effect.clip = function( o, done ) {
// Create element
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
mode = $.effects.setMode( el, o.mode || "hide" ),
Function _resetButton
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_resetButton: function() {
if ( this.type === "input" ) {
if ( this.options.label ) {
this.element.val( this.options.label );
}
Function _dialogDatepicker
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_dialogDatepicker: function(input, date, onSelect, settings, pos) {
var id, browserWidth, browserHeight, scrollX, scrollY,
inst = this._dialogInst; // internal instance
if (!inst) {
Function rescale
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
rescale : function( width, height, complete ) {
var self = this;
// allow rescale(fn)
Function slide
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var effectSlide = $.effects.effect.slide = function( o, done ) {
// Create element
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "width", "height" ],
Function pulsate
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var effectPulsate = $.effects.effect.pulsate = function( o, done ) {
var elem = $( this ),
mode = $.effects.setMode( elem, o.mode || "show" ),
show = mode === "show",
hide = mode === "hide",