dd-plugin.js revision ee4d8528357b157539bc45a7324cb16d46a88272
4458N/AYUI.add('dd-plugin', function(Y) {
4458N/A
4458N/A /**
4458N/A * This is a simple Drag plugin that can be attached to a Node via the plug method.
4458N/A * @module dd-plugin
4458N/A * @submodule dd-plugin
4458N/A */
4458N/A /**
4458N/A * This is a simple Drag plugin that can be attached to a Node via the plug method.
4458N/A * @class DragPlugin
4458N/A * @extends Drag
4458N/A * @constructor
4458N/A * @namespace plugin
4458N/A */
4458N/A
4458N/A
4458N/A var Drag = function(config) {
4458N/A config.node = config.owner;
4458N/A Drag.superclass.constructor.apply(this, arguments);
4458N/A };
4458N/A
4458N/A /**
5403N/A * @property NAME
4458N/A * @description dd-plugin
4458N/A * @type {String}
4458N/A */
4458N/A Drag.NAME = "dd-plugin";
4458N/A /**
5403N/A * @property NS
5403N/A * @description The Drag instance will be placed on the Node instance under the dd namespace. It can be accessed via Node.dd;
5403N/A * @type {String}
4458N/A */
4458N/A Drag.NS = "dd";
4458N/A
5403N/A
4458N/A Y.extend(Drag, Y.DD.Drag);
4458N/A Y.namespace('plugin');
4458N/A Y.plugin.Drag = Drag;
4458N/A
4458N/A
5403N/A
4458N/A}, '@VERSION@' ,{requires:['dd-drag'], optional:['dd-constrain', 'dd-proxy'], skinnable:false});
5425N/A