2 Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3 Code licensed under the BSD License:
4 http://developer.yahoo.com/yui/license.html
8 YUI.add('dd-plugin', function(Y) {
12 * Simple Drag plugin that can be attached to a Node via the plug method.
14 * @submodule dd-plugin
17 * Simple Drag plugin that can be attached to a Node via the plug method.
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);
32 * @description dd-plugin
35 Drag.NAME = "dd-plugin";
39 * @description The Drag instance will be placed on the Node instance under the dd namespace. It can be accessed via Node.dd;
45 Y.extend(Drag, Y.DD.Drag);
46 Y.namespace('Plugin');
53 }, '3.3.0' ,{requires:['dd-drag'], skinnable:false, optional:['dd-constrain', 'dd-proxy']});