js/date_picker/picker.js
Function PickerConstructor
has 427 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function PickerConstructor( ELEMENT, NAME, COMPONENT, OPTIONS ) {
// If there’s no element, return the picker constructor.
if ( !ELEMENT ) return PickerConstructor
File picker.js
has 568 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* pickadate.js v3.5.0, 2014/04/13
* By Amsul, http://amsul.ca
* Hosted on http://amsul.github.io/pickadate.js
* Licensed under MIT
Function prepareElementRoot
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prepareElementRoot() {
P.$root.
on({
Function open
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
open: function( dontGiveFocus ) {
// If it’s already open, do nothing.
if ( STATE.open ) return P
Function start
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start: function() {
// If it’s already started, do nothing.
if ( STATE && STATE.start ) return P
Function prepareElement
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prepareElement() {
$ELEMENT.
// Store the picker data by component name.
Function prepareElementHidden
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prepareElementHidden() {
var name
if ( SETTINGS.hiddenName === true ) {
Avoid too many return
statements within this function. Open
Open
return P.component.get( thing )