@@ -191,7 +191,7 @@ $.widget( "ui.droppable", {
191191 ! inst . options . disabled &&
192192 inst . options . scope === draggable . options . scope &&
193193 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 )
195195 ) { childrenIntersection = true ; return false ; }
196196 } ) ;
197197 if ( childrenIntersection ) {
@@ -224,7 +224,7 @@ $.widget( "ui.droppable", {
224224
225225} ) ;
226226
227- $ . ui . intersect = ( function ( ) {
227+ var intersect = ( function ( ) {
228228 function isOverAxis ( x , reference , size ) {
229229 return ( x >= reference ) && ( x < ( reference + size ) ) ;
230230 }
@@ -323,7 +323,7 @@ $.ui.ddmanager = {
323323 if ( ! this . options ) {
324324 return ;
325325 }
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 ) ) {
327327 dropped = this . _drop . call ( this , event ) || dropped ;
328328 }
329329
@@ -360,7 +360,7 @@ $.ui.ddmanager = {
360360 }
361361
362362 var parentInstance , scope , parent ,
363- intersects = $ . ui . intersect ( draggable , this , this . options . tolerance , event ) ,
363+ intersects = intersect ( draggable , this , this . options . tolerance , event ) ,
364364 c = ! intersects && this . isover ? "isout" : ( intersects && ! this . isover ? "isover" : null ) ;
365365 if ( ! c ) {
366366 return ;
0 commit comments