dd-plugin.js revision 8e7d713a6c785615b5688f96304ae151241dc885
124N/AYUI.add('dd-plugin', function(Y) {
124N/A
124N/A
124N/A /**
124N/A * Simple Drag plugin that can be attached to a Node via the plug method.
124N/A * @module dd
124N/A * @submodule dd-plugin
124N/A */
124N/A /**
124N/A * Simple Drag plugin that can be attached to a Node via the plug method.
124N/A * @class Drag
124N/A * @extends DD.Drag
124N/A * @constructor
124N/A * @namespace Plugin
124N/A */
124N/A
124N/A
124N/A var Drag = function(config) {
124N/A config.node = ((Y.Widget && config.host instanceof Y.Widget) ? config.host.get('boundingBox') : config.host);
124N/A Drag.superclass.constructor.call(this, config);
5680N/A };
5680N/A
5230N/A /**
124N/A * @property NAME
5680N/A * @description dd-plugin
124N/A * @type {String}
124N/A */
124N/A Drag.NAME = "dd-plugin";
7003N/A
618N/A /**
124N/A * @property NS
844N/A * @description The Drag instance will be placed on the Node instance under the dd namespace. It can be accessed via Node.dd;
7003N/A * @type {String}
618N/A */
124N/A Drag.NS = "dd";
7003N/A
5648N/A
5680N/A Y.extend(Drag, Y.DD.Drag);
6695N/A Y.namespace('Plugin');
6695N/A Y.Plugin.Drag = Drag;
6695N/A
6695N/A
5680N/A
124N/A
2960N/A
2960N/A}, '@VERSION@' ,{requires:['dd-drag'], optional:['dd-constrain', 'dd-proxy'], skinnable:false});
2960N/A