-<html>
-<head>
- <title>The source code</title>
- <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
- <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
-</head>
-<body onload="prettyPrint();">
- <pre class="prettyprint lang-js">/*!
- * Ext JS Library 3.0.3
- * Copyright(c) 2006-2009 Ext JS, LLC
- * licensing@extjs.com
- * http://www.extjs.com/license
- */
-<div id="cls-Ext.dd.DragZone"></div>/**\r
+<html>\r
+<head>\r
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> \r
+ <title>The source code</title>\r
+ <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
+ <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
+</head>\r
+<body onload="prettyPrint();">\r
+ <pre class="prettyprint lang-js"><div id="cls-Ext.dd.DragZone"></div>/**\r
* @class Ext.dd.DragZone\r
* @extends Ext.dd.DragSource\r
* <p>This class provides a container DD instance that allows dragging of multiple child source nodes.</p>\r
* by using the event's {@link Ext.EventObject#getTarget getTarget} method to identify a node based on a\r
* {@link Ext.DomQuery} selector. For example, to make the nodes of a DataView draggable, use the following\r
* technique. Knowledge of the use of the DataView is required:</p><pre><code>\r
-myDataView.on('render', function() {\r
- myDataView.dragZone = new Ext.dd.DragZone(myDataView.getEl(), {\r
+myDataView.on('render', function(v) {\r
+ myDataView.dragZone = new Ext.dd.DragZone(v.getEl(), {\r
\r
// On receipt of a mousedown event, see if it is within a DataView node.\r
// Return a drag data object if so.\r
\r
// Use the DataView's own itemSelector (a mandatory property) to\r
// test if the mousedown is within one of the DataView's nodes.\r
- var sourceEl = e.getTarget(myDataView.itemSelector, 10);\r
+ var sourceEl = e.getTarget(v.itemSelector, 10);\r
\r
// If the mousedown is within a DataView node, clone the node to produce\r
// a ddel element for use by the drag proxy. Also add application data\r
ddel: d,\r
sourceEl: sourceEl,\r
repairXY: Ext.fly(sourceEl).getXY(),\r
- sourceStore: myDataView.store,\r
- draggedRecord: v.getRecord(sourceEl)\r
+ sourceStore: v.store,\r
+ draggedRecord: v.{@link Ext.DataView#getRecord getRecord}(sourceEl)\r
}\r
}\r
},\r
getRepairXY : function(e){\r
return Ext.Element.fly(this.dragData.ddel).getXY(); \r
}\r
-});</pre>
-</body>
+});</pre> \r
+</body>\r
</html>
\ No newline at end of file