delegate.js revision 482da2d388e0f999f372383039af944e21bc717b
* Provides the ability to drag multiple nodes under a container element using only one Y.DD.Drag instance as a delegate.
* Provides the ability to drag multiple nodes under a container element using only one Y.DD.Drag instance as a delegate.
var Delegate = function(o) {
dd: null,
_shimState: null,
_onNodeChange: function(e) {
_afterDragEnd: function(e) {
var self = this;
_onDelegate: function(e) {
_onMouseEnter: function(e) {
_onMouseLeave: function(e) {
if (group) {
return self;
var config = {
useShim: false,
bubbleTargets: this
return node;
destructor: function() {
if (this.dd) {
ATTRS: {
* @description A selector query to get the container to listen for mousedown events on. All "nodes" should be a child of this container.
container: {
* @description A selector query to get the children of the "container" to make draggable elements from.
nodes: {
invalid: {
lastNode: {
currentNode: {
dragNode: {
over: {
value: false
target: {
value: false
dragConfig: {
value: null
handles: {
value: null
_delegates: [],
var del = null;
del = v;
return del;