From: Alexander Schmitz Date: Thu, 31 Mar 2016 02:31:17 +0000 (-0400) Subject: Selectable: Fix line length issues X-Git-Tag: 1.12.0-rc.2~56 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b74a8b68bd1e2922244a37ab6a39fb579ce429bb;p=jquery-ui.git Selectable: Fix line length issues Ref gh-1690 --- diff --git a/ui/widgets/selectable.js b/ui/widgets/selectable.js index f3f144a81..de7c59faf 100644 --- a/ui/widgets/selectable.js +++ b/ui/widgets/selectable.js @@ -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 ) {