dd-proxy-debug.js revision d60f68a8534f619bb0a3e59eea03a84a2f69021d
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass * Plugin for dd-drag for creating a proxy drag node, instead of dragging the original node.
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass * @module dd
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass * @submodule dd-proxy
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass * Plugin for dd-drag for creating a proxy drag node, instead of dragging the original node.
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass * @class DDProxy
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass * @extends Base
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass * @constructor
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass * @namespace Plugin
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass P = function(config) {
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass * @property NS
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass * @default con
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass * @protected
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass * @description The Proxy instance will be placed on the Drag instance under the proxy namespace.
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass * @type {String}
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass * @attribute moveOnEnd
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass * @description Move the original node at the end of the drag. Default: true
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass * @type Boolean
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass * @attribute hideOnEnd
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass * @description Hide the drag node at the end of the drag. Default: true
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass * @type Boolean
resizeFrame: {
borderStyle: {
cloneNode: {
value: false
proto = {
_hands: null,
_init: function() {
if (!this._hands) {
this._hands = [];
v.detach();
initializer: function() {
this._init();
destructor: function() {
v.detach();
clone: function() {
c = n.cloneNode(true);
delete c._yuid;
_createFrame: function() {
p.setStyles({
b.prepend(p);
* @description If resizeProxy is set to true (default) it will resize the proxy element to match the size of the Drag Element.
* If positionProxy is set to true (default) it will position the proxy element in the same location as the Drag Element.
if (ah) {
d.setStyles({
d.setStyles({