ddm-base.js revision 40dda569e06b647a3507ee206a8f2746d0e4885a
0N/A dragCursor: {
* @description The number of milliseconds a mousedown has to pass to start a drag operation, default is 1000.
throttleTime: {
* @description This attribute only works if the dd-drop module is active. It will set the dragMode (point, intersect, strict) of all future Drag instances.
dragMode: {
return mode;
_createPG: function() {},
_active: null,
* @param String/Number The Number value or the String for the DragMode to default all future drag instances to.
if (mode === null) {
switch (mode) {
_activateTargets: function() {},
_drags: [],
activeDrag: false,
* @description Adds a reference to the drag object to the DDM._drags array, called in the constructor of Drag.
_regDrag: function(d) {
if (!this._active) {
this._setupListeners();
_unregDrag: function(d) {
var tmp = [];
_setupListeners: function() {
this._createPG();
this._active = true;
_start: function() {
this._startDrag();
_startDrag: function() {},
_endDrag: function() {},
_dropMove: function() {},
_end: function() {
if (this.activeDrag) {
this._endDrag();
this.activeDrag = null;
* @description Method will forcefully stop a drag operation. For example calling this from inside an ESC keypress handler will stop this drag.
stopDrag: function() {
if (this.activeDrag) {
this._end();
if (this.activeDrag) {
this._dropMove();
* @param {String} gutter CSS style string for gutter: '5 0' (sets top and bottom to 5px, left and right to 0px), '1 2 3 4' (top 1px, right 2px, bottom 3px, left 4px)
switch (x.length) {
var drag = false,
if (n instanceof Y.Node) {
drag = v;
return drag;
return n1;
* @description Return a node instance from the given node, selector string or Y.Base extended object.
getNode: function(n) {
if (n && n.get) {
n = Y.one(n);
if (s == n1) {
return n1;