Skip to content
Permalink
Browse files

Allow higher cyclomatic complexity in functions that sanely use switc…

…h statements.
  • Loading branch information...
scottgonzalez committed Dec 6, 2012
1 parent ebf8a60 commit b239298946b466a0c87a0c1ead4ccd75141ed740
Showing with 5 additions and 0 deletions.
  1. +1 −0 ui/jquery.ui.accordion.js
  2. +1 −0 ui/jquery.ui.autocomplete.js
  3. +1 −0 ui/jquery.ui.dialog.js
  4. +1 −0 ui/jquery.ui.menu.js
  5. +1 −0 ui/jquery.ui.slider.js
@@ -166,6 +166,7 @@ $.widget( "ui.accordion", {
},

_keydown: function( event ) {
/*jshint maxcomplexity:15*/
if ( event.altKey || event.ctrlKey ) {
return;
}
@@ -66,6 +66,7 @@ $.widget( "ui.autocomplete", {

this._on( this.element, {
keydown: function( event ) {
/*jshint maxcomplexity:15*/
if ( this.element.prop( "readOnly" ) ) {
suppressKeyPress = true;
suppressInput = true;
@@ -553,6 +553,7 @@ $.widget("ui.dialog", {
},

_setOption: function( key, value ) {
/*jshint maxcomplexity:15*/
var isDraggable, isResizable,
uiDialog = this.uiDialog;

@@ -173,6 +173,7 @@ $.widget( "ui.menu", {
},

_keydown: function( event ) {
/*jshint maxcomplexity:20*/
var match, prev, character, skip, regex,
preventDefault = true;

@@ -119,6 +119,7 @@ $.widget( "ui.slider", $.ui.mouse, {

this._on( this.handles, {
keydown: function( event ) {
/*jshint maxcomplexity:25*/
var allowed, curVal, newVal, step,
index = $( event.target ).data( "ui-slider-handle-index" );

0 comments on commit b239298

Please sign in to comment.
You can’t perform that action at this time.