/*!
- * Ext JS Library 3.0.0
- * Copyright(c) 2006-2009 Ext JS, LLC
+ * Ext JS Library 3.1.1
+ * Copyright(c) 2006-2010 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
* 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