dd-plugin.js revision 2f2e0175c7a804044f30bad50351faab151fb772
402N/A /**
402N/A * This is a simple Drag plugin that can be attached to a Node via the plug method.
402N/A * @module dd-plugin
402N/A * @submodule dd-plugin
402N/A */
402N/A /**
402N/A * This is a simple Drag plugin that can be attached to a Node via the plug method.
402N/A * @class DragPlugin
402N/A * @extends Drag
402N/A * @constructor
402N/A * @namespace plugin
402N/A */
402N/A
402N/A
402N/A var Drag = function(config) {
402N/A config.node = config.owner;
402N/A Drag.superclass.constructor.apply(this, arguments);
402N/A };
402N/A
402N/A /**
402N/A * @property NAME
402N/A * @description dd-plugin
402N/A * @type {String}
402N/A */
402N/A Drag.NAME = "dd-plugin";
402N/A /**
402N/A * @property NS
402N/A * @description The Drag instance will be placed on the Node instance under the dd namespace. It can be accessed via Node.dd;
402N/A * @type {String}
402N/A */
402N/A Drag.NS = "dd";
402N/A
402N/A
402N/A Y.extend(Drag, Y.DD.Drag);
402N/A Y.namespace('plugin');
402N/A Y.plugin.Drag = Drag;