2 Copyright (c) 2009, Yahoo! Inc. All rights reserved.
3 Code licensed under the BSD License:
4 http://developer.yahoo.net/yui/license.txt
8 YUI.add('dd-plugin', function(Y) {
12 * This is a simple Drag plugin that can be attached to a Node via the plug method.
14 * @submodule dd-plugin
17 * This is a 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.apply(this, arguments);
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.0.0' ,{skinnable:false, requires:['dd-drag'], optional:['dd-constrain', 'dd-proxy']});