]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectable: Fix line length issues
authorAlexander Schmitz <arschmitz@gmail.com>
Thu, 31 Mar 2016 02:31:17 +0000 (22:31 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 13 Apr 2016 15:31:40 +0000 (11:31 -0400)
Ref gh-1690

ui/widgets/selectable.js

index f3f144a81dd82aa87519403ea8d7a29bc2c8e242..de7c59faf5a8ae9ff0d6cdc3bdea917e69eb4971 100644 (file)
@@ -137,7 +137,8 @@ return $.widget( "ui.selectable", $.ui.mouse, {
                        var doSelect,
                                selectee = $.data( this, "selectable-item" );
                        if ( selectee ) {
-                               doSelect = ( !event.metaKey && !event.ctrlKey ) || !selectee.$element.hasClass( "ui-selected" );
+                               doSelect = ( !event.metaKey && !event.ctrlKey ) ||
+                                       !selectee.$element.hasClass( "ui-selected" );
                                that._removeClass( selectee.$element, doSelect ? "ui-unselecting" : "ui-selected" )
                                        ._addClass( selectee.$element, doSelect ? "ui-selecting" : "ui-unselecting" );
                                selectee.unselecting = !doSelect;
@@ -190,9 +191,11 @@ return $.widget( "ui.selectable", $.ui.mouse, {
                        }
 
                        if ( options.tolerance === "touch" ) {
-                               hit = ( !( selectee.left > x2 || selectee.right < x1 || selectee.top > y2 || selectee.bottom < y1 ) );
+                               hit = ( !( selectee.left > x2 || selectee.right < x1 || selectee.top > y2 ||
+                                       selectee.bottom < y1 ) );
                        } else if ( options.tolerance === "fit" ) {
-                               hit = ( selectee.left > x1 && selectee.right < x2 && selectee.top > y1 && selectee.bottom < y2 );
+                               hit = ( selectee.left > x1 && selectee.right < x2 && selectee.top > y1 &&
+                                       selectee.bottom < y2 );
                        }
 
                        if ( hit ) {