Merge branch 'MDL-32509' of git://github.com/danpoltawski/moodle
[moodle.git] / lib / yui / 3.5.0 / build / dd-drop-plugin / dd-drop-plugin.js
blob7f9e24777cc074b6ac1f259b30547eebc7edddfe
1 /*
2 YUI 3.5.0 (build 5089)
3 Copyright 2012 Yahoo! Inc. All rights reserved.
4 Licensed under the BSD License.
5 http://yuilibrary.com/license/
6 */
7 YUI.add('dd-drop-plugin', function(Y) {
10        /**
11         * Simple Drop plugin that can be attached to a Node via the plug method.
12         * @module dd
13         * @submodule dd-drop-plugin
14         */
15        /**
16         * Simple Drop plugin that can be attached to a Node via the plug method.
17         * @class Drop
18         * @extends DD.Drop
19         * @constructor
20         * @namespace Plugin
21         */
24         var Drop = function(config) {
25             config.node = config.host;
26             Drop.superclass.constructor.apply(this, arguments);
27         };
28         
29         /**
30         * @property NAME
31         * @description dd-drop-plugin
32         * @type {String}
33         */
34         Drop.NAME = "dd-drop-plugin";
35         /**
36         * @property NS
37         * @description The Drop instance will be placed on the Node instance under the drop namespace. It can be accessed via Node.drop;
38         * @type {String}
39         */
40         Drop.NS = "drop";
43         Y.extend(Drop, Y.DD.Drop);
44         Y.namespace('Plugin');
45         Y.Plugin.Drop = Drop;
50 }, '3.5.0' ,{skinnable:false, requires:['dd-drop']});