app/assets/javascripts/jquery-ui/widgets/selectable.js in jquery-ui-rails-6.0.1 vs app/assets/javascripts/jquery-ui/widgets/selectable.js in jquery-ui-rails-7.0.0
- old
+ new
@@ -1,11 +1,11 @@
//= require jquery-ui/widgets/mouse
//= require jquery-ui/version
//= require jquery-ui/widget
/*!
- * jQuery UI Selectable 1.12.1
+ * jQuery UI Selectable 1.13.0
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -17,10 +17,12 @@
//>>docs: http://api.jqueryui.com/selectable/
//>>demos: http://jqueryui.com/selectable/
//>>css.structure: ../../themes/base/selectable.css
( function( factory ) {
+ "use strict";
+
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( [
"jquery",
@@ -31,14 +33,15 @@
} else {
// Browser globals
factory( jQuery );
}
-}( function( $ ) {
+} )( function( $ ) {
+"use strict";
return $.widget( "ui.selectable", $.ui.mouse, {
- version: "1.12.1",
+ version: "1.13.0",
options: {
appendTo: "body",
autoRefresh: true,
distance: 0,
filter: "*",
@@ -185,12 +188,16 @@
x1 = this.opos[ 0 ],
y1 = this.opos[ 1 ],
x2 = event.pageX,
y2 = event.pageY;
- if ( x1 > x2 ) { tmp = x2; x2 = x1; x1 = tmp; }
- if ( y1 > y2 ) { tmp = y2; y2 = y1; y1 = tmp; }
+ if ( x1 > x2 ) {
+ tmp = x2; x2 = x1; x1 = tmp;
+ }
+ if ( y1 > y2 ) {
+ tmp = y2; y2 = y1; y1 = tmp;
+ }
this.helper.css( { left: x1, top: y1, width: x2 - x1, height: y2 - y1 } );
this.selectees.each( function() {
var selectee = $.data( this, "selectable-item" ),
hit = false,
@@ -309,6 +316,6 @@
return false;
}
} );
-} ) );
+} );