mirror of
https://github.com/moodle/moodle.git
synced 2025-07-26 08:50:30 +02:00
45 lines
1.0 KiB
JavaScript
45 lines
1.0 KiB
JavaScript
YUI.add('dd-drop-plugin', function (Y, NAME) {
|
|
|
|
|
|
/**
|
|
* Simple Drop plugin that can be attached to a Node via the plug method.
|
|
* @module dd
|
|
* @submodule dd-drop-plugin
|
|
*/
|
|
/**
|
|
* Simple Drop plugin that can be attached to a Node via the plug method.
|
|
* @class Drop
|
|
* @extends DD.Drop
|
|
* @constructor
|
|
* @namespace Plugin
|
|
*/
|
|
|
|
|
|
var Drop = function(config) {
|
|
config.node = config.host;
|
|
Drop.superclass.constructor.apply(this, arguments);
|
|
};
|
|
|
|
/**
|
|
* dd-drop-plugin
|
|
* @property NAME
|
|
* @type {String}
|
|
*/
|
|
Drop.NAME = "dd-drop-plugin";
|
|
/**
|
|
* The Drop instance will be placed on the Node instance under the drop namespace. It can be accessed via Node.drop;
|
|
* @property NS
|
|
* @type {String}
|
|
*/
|
|
Drop.NS = "drop";
|
|
|
|
|
|
Y.extend(Drop, Y.DD.Drop);
|
|
Y.namespace('Plugin');
|
|
Y.Plugin.Drop = Drop;
|
|
|
|
|
|
|
|
|
|
}, '3.18.1', {"requires": ["dd-drop"]});
|