Lines Matching refs:drop
55 isContained: function(element, drop) { argument
57 if(drop.tree) {
62 return drop._containers.detect(function(c) { return containmentNode == c });
65 isAffected: function(point, element, drop) { argument
67 (drop.element!=element) &&
68 ((!drop._containers) ||
69 this.isContained(element, drop)) &&
70 ((!drop.accept) ||
72 function(v) { return drop.accept.include(v) } ) )) &&
73 Position.within(drop.element, point[0], point[1]) );
76 deactivate: function(drop) { argument
77 if(drop.hoverclass)
78 Element.removeClassName(drop.element, drop.hoverclass);
82 activate: function(drop) { argument
83 if(drop.hoverclass)
84 Element.addClassName(drop.element, drop.hoverclass);
85 this.last_active = drop;
90 var drop, affected = [];
92 this.drops.each( function(drop) { argument
93 if(Droppables.isAffected(point, element, drop))
94 affected.push(drop);
98 drop = Droppables.findDeepestChild(affected);
100 if(this.last_active && this.last_active != drop) this.deactivate(this.last_active);
101 if (drop) {
102 Position.within(drop.element, point[0], point[1]);
103 if(drop.onHover)
104 drop.onHover(element, drop.element, Position.overlap(drop.overlap, drop.element));
106 if (drop != this.last_active) Droppables.activate(drop);