Showing 161 of 426 total issues
Function _makeDraggable
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_makeDraggable: function() {
var that = this,
options = this.options;
function filteredUi( ui ) {
Function option
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
option: function( key, value ) {
var options = key,
parts,
curOption,
i;
Function create
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
create: function( dialog ) {
if ( this.instances.length === 0 ) {
// prevent use of anchors and inputs
// we use a setTimeout in case the overlay is created from an
// event that we're going to be cancelling (see #2804)
Function _destroy
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_destroy: function() {
var contents;
// clean up main element
this.element
Function offsetString
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var offsetString = function(offset) {
try {
return $.datepicker.parseDate($.datepicker._get(inst, 'dateFormat'),
offset, $.datepicker._getFormatConfig(inst));
}
Function _possibleChars
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_possibleChars: function (format) {
var chars = '';
var literal = false;
// Check whether a format character is doubled
var lookAhead = function(match) {
Function _refreshItems
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_refreshItems: function(event) {
this.items = [];
this.containers = [this];
var items = this.items;
Function drag
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drag: function(event, ui) {
var i = $(this).data("draggable"), o = i.options, scrolled = false;
if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') {
Function _determineButtonType
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_determineButtonType: function() {
var ancestor, labelSelector, checked;
if ( this.element.is("[type=checkbox]") ) {
this.type = "checkbox";
Function to
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
spaces.hsla.to = function ( rgba ) {
if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
return [ null, null, null, rgba[ 3 ] ];
}
var r = rgba[ 0 ] / 255,
Function open
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
open: function( event ) {
var that = this,
target = $( event ? event.target : this.element )
// we need closest here due to mouseover bubbling,
// but always pointing at the same event target
Function cancel
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
cancel: function() {
if(this.dragging) {
this._mouseUp({ target: null });
Function drag
has 30 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 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 _createWidget
has 29 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 = uuid++;
this.eventNamespace = "." + this.widgetName + this.uuid;
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 _destroy
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_destroy: function() {
// Destroy (sub)menus
this.element
.removeAttr( "aria-activedescendant" )
.find( ".ui-menu" ).andSelf()
Function close
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
close: function( event ) {
var that = this,
target = $( event ? event.currentTarget : this.element ),
tooltip = this._find( target );
Function _optionDatepicker
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_optionDatepicker: function(target, name, value) {
var inst = this._getInst(target);
if (arguments.length == 2 && typeof name == 'string') {
return (name == 'defaults' ? $.extend({}, $.datepicker._defaults) :
(inst ? (name == 'all' ? $.extend({}, inst.settings) :
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 );