Commit 02d5ae39 authored by Eugene Lazutkin's avatar Eugene Lazutkin

In order to stop critics I've implemented dojo.dnd.Target for them. Enjoy! Fixes #3568.

git-svn-id: http://svn.dojotoolkit.org/src/dojo/trunk@9373 560b804f-0ae3-0310-86f3-f6aa0a117693
parent a3cc2936
......@@ -22,7 +22,7 @@ dojo.require("dojo.dnd.manager");
dojo.declare("dojo.dnd.Source", dojo.dnd.Selector,
// summary: a Source object, which can be used as a DnD source, or a DnD target
function(node, params){
// summary: a constructor of the Selector
// summary: a constructor of the Source
// node: Node: node or node's id to build the source on
// params: Object: a dict of parameters, recognized parameters are:
// isSource: Boolean: can be used as a DnD source, if true; assumed to be "true" if omitted
......@@ -263,4 +263,11 @@ function(node, params){
// summary: changes source's state based on "copy" status
this._changeState("Source", copy ? "Copied" : "Moved");
}
});
\ No newline at end of file
});
dojo.declare("dojo.dnd.Target", dojo.dnd.Source,
// summary: a Target object, which can be used as a DnD target
function(node, params){
// summary: a constructor of the Target --- see the Source constructor for details
this.isSource = false;
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment