]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - jssource/src_files/include/javascript/yui3/build/dd/dd-plugin.js
Release 6.5.0
[Github/sugarcrm.git] / jssource / src_files / include / javascript / yui3 / build / dd / dd-plugin.js
1 /*
2 Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3 Code licensed under the BSD License:
4 http://developer.yahoo.com/yui/license.html
5 version: 3.3.0
6 build: 3167
7 */
8 YUI.add('dd-plugin', function(Y) {
9
10
11        /**
12         * Simple Drag plugin that can be attached to a Node via the plug method.
13         * @module dd
14         * @submodule dd-plugin
15         */
16        /**
17         * Simple Drag plugin that can be attached to a Node via the plug method.
18         * @class Drag
19         * @extends DD.Drag
20         * @constructor
21         * @namespace Plugin
22         */
23
24
25         var Drag = function(config) {
26             config.node = ((Y.Widget && config.host instanceof Y.Widget) ? config.host.get('boundingBox') : config.host);
27             Drag.superclass.constructor.call(this, config);
28         };
29         
30         /**
31         * @property NAME
32         * @description dd-plugin
33         * @type {String}
34         */
35         Drag.NAME = "dd-plugin";
36
37         /**
38         * @property NS
39         * @description The Drag instance will be placed on the Node instance under the dd namespace. It can be accessed via Node.dd;
40         * @type {String}
41         */
42         Drag.NS = "dd";
43
44
45         Y.extend(Drag, Y.DD.Drag);
46         Y.namespace('Plugin');
47         Y.Plugin.Drag = Drag;
48
49
50
51
52
53 }, '3.3.0' ,{requires:['dd-drag'], skinnable:false, optional:['dd-constrain', 'dd-proxy']});