]> source.dussan.org Git - jquery-ui.git/commitdiff
Allow higher cyclomatic complexity in functions that sanely use switch statements.
authorScott González <scott.gonzalez@gmail.com>
Thu, 6 Dec 2012 19:25:48 +0000 (14:25 -0500)
committerScott González <scott.gonzalez@gmail.com>
Thu, 6 Dec 2012 19:31:21 +0000 (14:31 -0500)
ui/jquery.ui.accordion.js
ui/jquery.ui.autocomplete.js
ui/jquery.ui.dialog.js
ui/jquery.ui.menu.js
ui/jquery.ui.slider.js

index 7914f7c5ffa5e432dc83fdc91f76c1dfffe129a2..60475b8baf43b4d749d3aa5d48f6543b952d5691 100644 (file)
@@ -166,6 +166,7 @@ $.widget( "ui.accordion", {
        },
 
        _keydown: function( event ) {
+               /*jshint maxcomplexity:15*/
                if ( event.altKey || event.ctrlKey ) {
                        return;
                }
index 5edb84d442655c40b9f383d5021cb8c7060cb097..c049b856953814329c185d97e7c20e0020d6f019 100644 (file)
@@ -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;
index eac818fe0e12a042c6e22f55450199132ba5b923..b2b8be8c0f287aac5ad3d3af3769d27208b3c51f 100644 (file)
@@ -553,6 +553,7 @@ $.widget("ui.dialog", {
        },
 
        _setOption: function( key, value ) {
+               /*jshint maxcomplexity:15*/
                var isDraggable, isResizable,
                        uiDialog = this.uiDialog;
 
index 45c1ec2e4b64722290aa11246a6feaf652d25ad1..41a69c4723a81b4926d40223dcc2aae0f23dc724 100644 (file)
@@ -173,6 +173,7 @@ $.widget( "ui.menu", {
        },
 
        _keydown: function( event ) {
+               /*jshint maxcomplexity:20*/
                var match, prev, character, skip, regex,
                        preventDefault = true;
 
index d9fc1b1328e395dc372191506a5c2b9c02cbdc6a..02fee8364fbae0fb8283213e60eeb1bf56702be4 100644 (file)
@@ -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" );