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