Showing 257 of 576 total issues
Function _refreshValue
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_refreshValue: function() {
var value = this.options.value,
percentage = this._percentage();
this.valueDiv
Function _refresh
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_refresh: function() {
this._setupDisabled( this.options.disabled );
this._setupEvents( this.options.event );
this._setupHeightStyle( this.options.heightStyle );
Function transition
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
transition: function( other, distance ) {
var end = color( other ),
spaceName = end._space(),
space = spaces[ spaceName ],
startColor = this.alpha() === 0 ? color( "transparent" ) : this,
Function complete
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
complete: function() {
if ( el.to.opacity === 0 ) {
el.css( "opacity", el.from.opacity );
}
if ( mode === "hide" ) {
Function _drop
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_drop: function( event, custom ) {
var draggable = custom || $.ui.ddmanager.current,
childrenIntersection = false;
Function _destroy
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_destroy: function() {
// Destroy (sub)menus
this.element
.removeAttr( "aria-activedescendant" )
.find( ".ui-menu" ).addBack()
Function startOf
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function startOf (units) {
units = normalizeUnits(units);
// the following switch intentionally omits break keywords
// to utilize falling through the cases.
switch (units) {
Function removeTag
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
removeTag: function(tag, animate, removeOnly) {
var that = this;
if (this.options.pruneTags && !removeOnly) {
that.pruneTag(tag)
Function _getWH
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getWH : function() {
var $container = this.$( 'container' ),
$target = this.$( 'target' ),
self = this,
Function _initSource
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initSource: function() {
var array, url,
that = this;
if ( $.isArray( this.options.source ) ) {
array = this.options.source;
Function _createWidget
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createWidget: function( options, element ) {
element = $( element || this.defaultElement || this )[ 0 ];
this.element = $( element );
this.uuid = widget_uuid++;
this.eventNamespace = "." + this.widgetName + this.uuid;
Function values
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
values: function( index, newValue ) {
var vals,
newValues,
i;
Function highlight
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var effectHighlight = $.effects.effect.highlight = function( o, done ) {
var elem = $( this ),
props = [ "backgroundImage", "backgroundColor", "opacity" ],
mode = $.effects.setMode( elem, o.mode || "show" ),
animation = {
Function _mouseDrag
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseDrag: function(event) {
var data, props,
smp = this.originalMousePosition,
a = this.axis,
Function transfer
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var effectTransfer = $.effects.effect.transfer = function( o, done ) {
var elem = $( this ),
target = $( o.to ),
targetFixed = target.css( "position" ) === "fixed",
body = $("body"),
Function _createOverlay
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createOverlay: function() {
if ( !this.options.modal ) {
return;
}
Function puff
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var effectPuff = $.effects.effect.puff = function( o, done ) {
var elem = $( this ),
mode = $.effects.setMode( elem, o.mode || "hide" ),
hide = mode === "hide",
percent = parseInt( o.percent, 10 ) || 150,
Function _create
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function() {
var selectees,
that = this;
this.element.addClass("ui-selectable");
Function left
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
left: function( position, data ) {
var within = data.within,
withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
outerWidth = within.width,
collisionPosLeft = position.left - data.collisionPosition.marginLeft,
Function _setOption
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setOption: function( key, value ) {
if ( key === "active" ) {
// _activate() will handle invalid values and update this.options
this._activate( value );
return;