dd-plugin.js revision 489504a37b99aa0273fca2d41ae36da3356233cf
/**
* Simple Drag plugin that can be attached to a Node or Widget via the plug method.
* @module dd
* @submodule dd-plugin
*/
/**
* Simple Drag plugin that can be attached to a Node or Widget via the plug method.
* @class Drag
* @extends DD.Drag
* @constructor
* @namespace Plugin
*/
}
else {
}
},
EV_DRAG = 'drag:drag',
EV_DRAG_END = 'drag:end';
/**
* @property NAME
* @description dd-plugin
* @type {String}
*/
/**
* @property NS
* @description The Drag instance will be placed on the Node instance under the dd namespace. It can be accessed via Node.dd;
* @type {String}
*/
//refers to a Y.Widget if its the host, otherwise = false.
//boolean: true if widget uses widgetPosition, else False
_usesWidgetPosition: function(widget) {
var r = false;
if (widget) {
}
return r;
},
initializer: function(config) {
//if this thing is a widget, and it uses widgetposition...
if (this._usesWidgetPosition(this._widget)) {
//set the x,y on the widget's ATTRS
//store the new position that the widget ends up on
}
},
_setWidgetCoords: function(e) {
//get the last position where the widget was, or get the starting point
//if both have changed..
}
//if only x is 0, set the Y
}
//otherwise, y is 0, so set X
}
},
updateStopPosition: function(e) {
}
});
Y.namespace('Plugin');