Showing 161 of 426 total issues
Function _hideDatepicker
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_hideDatepicker: function(input) {
var inst = this._curInst;
if (!inst || (input && inst != $.data(input, PROP_NAME)))
return;
if (this._datepickerShowing) {
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 _createButtons
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createButtons: function( buttons ) {
var that = this,
hasButtons = false;
// if we already have a button pane, remove it
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 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 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 _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 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 cancel
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
cancel: function() {
if(this.dragging) {
this._mouseUp({ target: null });
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 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 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 _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 _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 resize
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
resize: function(event, ui) {
var that = $(this).data("resizable"), o = that.options,
ps = that.containerSize, co = that.containerOffset, cs = that.size, cp = that.position,
pRatio = that._aspectRatio || event.shiftKey, cop = { top:0, left:0 }, ce = that.containerElement;
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 _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 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 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,