aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvelyn Masso <evoutofambit@gmail.com>2016-10-01 15:47:36 -0700
committerScott González <scott.gonzalez@gmail.com>2016-10-03 09:16:41 -0400
commitfd30534b73eaf9c076f93a349dbe0c7a77efc209 (patch)
treee9c8b8e4acb1e089a400af50fbf736969337fa72
parentb9ffc34710212fd910717ab735818ef265c9372e (diff)
downloadjquery-ui-fd30534b73eaf9c076f93a349dbe0c7a77efc209.tar.gz
jquery-ui-fd30534b73eaf9c076f93a349dbe0c7a77efc209.zip
Droppable: Use `$.ui.intersect()`
Fixes #14963
-rw-r--r--ui/widgets/droppable.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/widgets/droppable.js b/ui/widgets/droppable.js
index 67bcb693d..89bff2511 100644
--- a/ui/widgets/droppable.js
+++ b/ui/widgets/droppable.js
@@ -199,7 +199,7 @@ $.widget( "ui.droppable", {
inst.accept.call(
inst.element[ 0 ], ( draggable.currentItem || draggable.element )
) &&
- intersect(
+ $.ui.intersect(
draggable,
$.extend( inst, { offset: inst.element.offset() } ),
inst.options.tolerance, event
@@ -253,7 +253,7 @@ $.widget( "ui.droppable", {
}
} );
-var intersect = $.ui.intersect = ( function() {
+$.ui.intersect = ( function() {
function isOverAxis( x, reference, size ) {
return ( x >= reference ) && ( x < ( reference + size ) );
}
@@ -361,7 +361,7 @@ $.ui.ddmanager = {
return;
}
if ( !this.options.disabled && this.visible &&
- intersect( draggable, this, this.options.tolerance, event ) ) {
+ $.ui.intersect( draggable, this, this.options.tolerance, event ) ) {
dropped = this._drop.call( this, event ) || dropped;
}
@@ -402,7 +402,7 @@ $.ui.ddmanager = {
}
var parentInstance, scope, parent,
- intersects = intersect( draggable, this, this.options.tolerance, event ),
+ intersects = $.ui.intersect( draggable, this, this.options.tolerance, event ),
c = !intersects && this.isover ?
"isout" :
( intersects && !this.isover ? "isover" : null );