@@ -191,7 +191,7 @@ $.widget( "ui.droppable", {
191
191
! inst . options . disabled &&
192
192
inst . options . scope === draggable . options . scope &&
193
193
inst . accept . call ( inst . element [ 0 ] , ( draggable . currentItem || draggable . element ) ) &&
194
- $ . ui . intersect ( draggable , $ . extend ( inst , { offset : inst . element . offset ( ) } ) , inst . options . tolerance , event )
194
+ intersect ( draggable , $ . extend ( inst , { offset : inst . element . offset ( ) } ) , inst . options . tolerance , event )
195
195
) { childrenIntersection = true ; return false ; }
196
196
} ) ;
197
197
if ( childrenIntersection ) {
@@ -224,7 +224,7 @@ $.widget( "ui.droppable", {
224
224
225
225
} ) ;
226
226
227
- $ . ui . intersect = ( function ( ) {
227
+ var intersect = ( function ( ) {
228
228
function isOverAxis ( x , reference , size ) {
229
229
return ( x >= reference ) && ( x < ( reference + size ) ) ;
230
230
}
@@ -323,7 +323,7 @@ $.ui.ddmanager = {
323
323
if ( ! this . options ) {
324
324
return ;
325
325
}
326
- if ( ! this . options . disabled && this . visible && $ . ui . intersect ( draggable , this , this . options . tolerance , event ) ) {
326
+ if ( ! this . options . disabled && this . visible && intersect ( draggable , this , this . options . tolerance , event ) ) {
327
327
dropped = this . _drop . call ( this , event ) || dropped ;
328
328
}
329
329
@@ -360,7 +360,7 @@ $.ui.ddmanager = {
360
360
}
361
361
362
362
var parentInstance , scope , parent ,
363
- intersects = $ . ui . intersect ( draggable , this , this . options . tolerance , event ) ,
363
+ intersects = intersect ( draggable , this , this . options . tolerance , event ) ,
364
364
c = ! intersects && this . isover ? "isout" : ( intersects && ! this . isover ? "isover" : null ) ;
365
365
if ( ! c ) {
366
366
return ;
0 commit comments