Upgrade to ExtJS 3.1.0 - Released 12/16/2009
[extjs.git] / src / dd / DragZone.js
index 9026bab..8a63a37 100644 (file)
@@ -1,5 +1,5 @@
 /*!
- * Ext JS Library 3.0.3
+ * Ext JS Library 3.1.0
  * Copyright(c) 2006-2009 Ext JS, LLC
  * licensing@extjs.com
  * http://www.extjs.com/license
@@ -21,8 +21,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
@@ -30,7 +30,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
@@ -42,8 +42,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