Upgrade to ExtJS 3.1.0 - Released 12/16/2009
[extjs.git] / docs / source / DragZone.html
index 1e49358..b40153e 100644 (file)
@@ -1,5 +1,6 @@
 <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
@@ -22,8 +23,8 @@
  * 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
@@ -31,7 +32,7 @@ myDataView.on('render', function() {
 \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
@@ -43,8 +44,8 @@ myDataView.on('render', function() {
                     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