mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Allow higher cyclomatic complexity in functions that sanely use switch statements.
This commit is contained in:
parent
ebf8a60187
commit
b239298946
1
ui/jquery.ui.accordion.js
vendored
1
ui/jquery.ui.accordion.js
vendored
@ -166,6 +166,7 @@ $.widget( "ui.accordion", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_keydown: function( event ) {
|
_keydown: function( event ) {
|
||||||
|
/*jshint maxcomplexity:15*/
|
||||||
if ( event.altKey || event.ctrlKey ) {
|
if ( event.altKey || event.ctrlKey ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
1
ui/jquery.ui.autocomplete.js
vendored
1
ui/jquery.ui.autocomplete.js
vendored
@ -66,6 +66,7 @@ $.widget( "ui.autocomplete", {
|
|||||||
|
|
||||||
this._on( this.element, {
|
this._on( this.element, {
|
||||||
keydown: function( event ) {
|
keydown: function( event ) {
|
||||||
|
/*jshint maxcomplexity:15*/
|
||||||
if ( this.element.prop( "readOnly" ) ) {
|
if ( this.element.prop( "readOnly" ) ) {
|
||||||
suppressKeyPress = true;
|
suppressKeyPress = true;
|
||||||
suppressInput = true;
|
suppressInput = true;
|
||||||
|
1
ui/jquery.ui.dialog.js
vendored
1
ui/jquery.ui.dialog.js
vendored
@ -553,6 +553,7 @@ $.widget("ui.dialog", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_setOption: function( key, value ) {
|
_setOption: function( key, value ) {
|
||||||
|
/*jshint maxcomplexity:15*/
|
||||||
var isDraggable, isResizable,
|
var isDraggable, isResizable,
|
||||||
uiDialog = this.uiDialog;
|
uiDialog = this.uiDialog;
|
||||||
|
|
||||||
|
1
ui/jquery.ui.menu.js
vendored
1
ui/jquery.ui.menu.js
vendored
@ -173,6 +173,7 @@ $.widget( "ui.menu", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_keydown: function( event ) {
|
_keydown: function( event ) {
|
||||||
|
/*jshint maxcomplexity:20*/
|
||||||
var match, prev, character, skip, regex,
|
var match, prev, character, skip, regex,
|
||||||
preventDefault = true;
|
preventDefault = true;
|
||||||
|
|
||||||
|
1
ui/jquery.ui.slider.js
vendored
1
ui/jquery.ui.slider.js
vendored
@ -119,6 +119,7 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|||||||
|
|
||||||
this._on( this.handles, {
|
this._on( this.handles, {
|
||||||
keydown: function( event ) {
|
keydown: function( event ) {
|
||||||
|
/*jshint maxcomplexity:25*/
|
||||||
var allowed, curVal, newVal, step,
|
var allowed, curVal, newVal, step,
|
||||||
index = $( event.target ).data( "ui-slider-handle-index" );
|
index = $( event.target ).data( "ui-slider-handle-index" );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user