Documentation

include MVC MVC.Animate MVC.Class MVC.Controller MVC.Controller.Action MVC.Controller.Action.Drag MVC.Controller.Action.Drop MVC.Controller.Action.EnterLeave MVC.Controller.Action.Event MVC.Controller.Action.Hover MVC.Controller.Action.Lasso MVC.Controller.Action.Selectable MVC.Controller.Action.Subscribe MVC.Controller.Comet MVC.Controller.Params MVC.Controller.Params.Drag MVC.Controller.Params.Drop MVC.Controller.Stateful MVC.Delegator MVC.Doc MVC.Element MVC.Event MVC.File MVC.History MVC.IO MVC.IO.Ajax MVC.IO.Comet MVC.IO.JsonP MVC.IO.WindowName MVC.IO.XDoc MVC.Model MVC.Model.Ajax MVC.Model.Cookie MVC.Model.JsonP MVC.Model.JsonRest MVC.Model.WindowName MVC.Model.XmlRest MVC.Native MVC.Native.Array MVC.Native.Date MVC.Native.Function MVC.Native.Number MVC.Native.Object MVC.Native.String MVC.Options MVC.Store MVC.SyntheticEvent MVC.Test MVC.Test.Assertions MVC.Test.Controller MVC.Test.Functional MVC.Test.Runner MVC.Test.Unit MVC.Timer MVC.Timer.Easings MVC.Vector MVC.View MVC.View.Helpers OpenAjax

MVC.Droppables

Inherits: MVC.Class
A collection of all the drop elements.

Static Methods

activate

activate(drop, drag, event) -> undefined
Calls dropover
{Object} -
{Object} -
{Object} -

add

add(element, callbacks) -> undefined
Creates a new droppable and adds it to the list.
{Object} -
{Object} - callback functions for drop events: dropover, dropped, dropout,dropadd,dropmove

clear

clear() -> undefined
Called after dragging has stopped.

compile

compile() -> undefined
Called when the user first starts to drag. Uses query to get all possible droppable elements and adds them.

deactivate

deactivate(drop, drag, event) -> undefined
Calls dropout and sets last active to null
{Object} -
{Object} -
{Object} -

findDeepestChild

findDeepestChild(drops) -> MVC.Controller.Params.Drop
For a list of affected drops, finds the one that is deepest in the dom.
{Object} -
{MVC.Controller.Params.Drop} - deepest

fire

fire(event, drag, element) -> undefined
Called on mouse up of a dragged element.
{Object} -
{} -
{Object} -

isAffected

isAffected(point, element, drop) -> undefined
Tests if a drop is within the point.
{Object} -
{Object} -
{Object} -

show

show(point, drag, event) -> undefined
Gives a point, the object being dragged, and the latest mousemove event. Go through each droppable and see if it is affected. Called on every mousemove.
{Object} -
{Object} -
{Object} -