/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/static/javascript/yui/build/dd/dd-drop-plugin.js

  • Committer: Martin Albisetti
  • Date: 2008-10-20 21:18:06 UTC
  • mfrom: (229.1.3 add-yui-3)
  • Revision ID: martin.albisetti@canonical.com-20081020211806-rzs0ya40gz9wcpoz
Added yui library to the tree. Welcome to the future. (Paul Hummer)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
 
3
Code licensed under the BSD License:
 
4
http://developer.yahoo.net/yui/license.txt
 
5
version: 3.0.0pr1
 
6
*/
 
7
YUI.add('dd-drop-plugin', function(Y) {
 
8
 
 
9
       /**
 
10
        * This is a simple Drop plugin that can be attached to a Node via the plug method.
 
11
        * @module dd-plugin
 
12
        * @submodule dd-drop-plugin
 
13
        */
 
14
       /**
 
15
        * This is a simple Drop plugin that can be attached to a Node via the plug method.
 
16
        * @class DropPlugin
 
17
        * @extends Drop
 
18
        * @constructor
 
19
        */
 
20
 
 
21
        Y.Plugin = Y.Plugin || {};
 
22
 
 
23
        var Drop = function(config) {
 
24
            config.node = config.owner;
 
25
            Drop.superclass.constructor.apply(this, arguments);
 
26
        };
 
27
        
 
28
        /**
 
29
        * @property NAME
 
30
        * @description dd-drop-plugin
 
31
        * @type {String}
 
32
        */
 
33
        Drop.NAME = "dd-drop-plugin";
 
34
        /**
 
35
        * @property NS
 
36
        * @description The Drop instance will be placed on the Node instance under the drop namespace. It can be accessed via Node.drop;
 
37
        * @type {String}
 
38
        */
 
39
        Drop.NS = "drop";
 
40
 
 
41
 
 
42
        Y.extend(Drop, Y.DD.Drop);
 
43
        Y.Plugin.Drop = Drop;
 
44
 
 
45
 
 
46
 
 
47
}, '3.0.0pr1' ,{requires:['dd-drop'], skinnable:false});