Showing 319 of 620 total issues
Consider simplifying this complex logical expression. Open
Open
if ( match[1] === "nth" ) {
if ( !match[2] ) {
Sizzle.error( match[0] );
}
Function _keydown
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_keydown: function( event ) {
if ( event.altKey || event.ctrlKey ) {
return;
}
Function _dialogDatepicker
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_dialogDatepicker: function(input, date, onSelect, settings, pos) {
var inst = this._dialogInst; // internal instance
if (!inst) {
this.uuid += 1;
var id = 'dp' + this.uuid;
Function top
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
top: function( position, data ) {
var within = data.within,
withinOffset = within.offset.top + within.scrollTop,
outerHeight = within.height,
offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
Function _position
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_position: function( position ) {
var myAt = [],
offset = [ 0, 0 ],
isVisible;
Function _setupHeightStyle
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setupHeightStyle: function( heightStyle ) {
var maxHeight, overflow,
parent = this.element.parent();
if ( heightStyle === "fill" ) {
Function Deferred
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Deferred: function( func ) {
var deferred = jQuery._Deferred(),
failDeferred = jQuery._Deferred(),
promise;
// Add errorDeferred methods, then and promise
Function _updateDatepicker
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_updateDatepicker: function(inst) {
this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
var borders = $.datepicker._getBorders(inst.dpDiv);
instActive = inst; // for delegate hover events
inst.dpDiv.empty().append(this._generateHTML(inst));
Function left
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
left: function( position, data ) {
var within = data.within,
withinOffset = within.offset.left + within.scrollLeft,
outerWidth = within.width,
offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left,
Function _normalizeArguments
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _normalizeArguments( effect, options, speed, callback ) {
// allow passing all options as the first parameter
if ( $.isPlainObject( effect ) ) {
options = effect;
Function drawGraph
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function drawGraph(lenses) {
data = [];
min_focal_length = parseInt(lenses[0]['plot'][0]);
max_focal_length = min_focal_length
Function when
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
when: function( object ) {
var lastIndex = arguments.length,
deferred = lastIndex <= 1 && object && jQuery.isFunction( object.promise ) ?
object :
jQuery.Deferred(),
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 _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 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 _attachHandlers
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_attachHandlers: function(inst) {
var stepMonths = this._get(inst, 'stepMonths');
var id = '#' + inst.id.replace( /\\\\/g, "\\" );
inst.dpDiv.find('[data-handler]').map(function () {
var handler = {
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 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 _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;