diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2016-03-30 22:31:17 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2016-04-13 11:31:40 -0400 |
commit | b74a8b68bd1e2922244a37ab6a39fb579ce429bb (patch) | |
tree | 39fbf11fffb1f9f408255ac0077a9f6a8ed788d5 | |
parent | b6b4dd1279382d9a166408368249df7e85246576 (diff) | |
download | jquery-ui-b74a8b68bd1e2922244a37ab6a39fb579ce429bb.tar.gz jquery-ui-b74a8b68bd1e2922244a37ab6a39fb579ce429bb.zip |
Selectable: Fix line length issues
Ref gh-1690
-rw-r--r-- | ui/widgets/selectable.js | 9 |
1 files changed, 6 insertions, 3 deletions
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 ) { |