X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..92c2b89db26be16707f4a805d3303ab2531006e1:/docs/source/DragZone.html?ds=sidebyside diff --git a/docs/source/DragZone.html b/docs/source/DragZone.html index 1e493582..b40153ec 100644 --- a/docs/source/DragZone.html +++ b/docs/source/DragZone.html @@ -1,5 +1,6 @@
+
-myDataView.on('render', function() {
- myDataView.dragZone = new Ext.dd.DragZone(myDataView.getEl(), {
+myDataView.on('render', function(v) {
+ myDataView.dragZone = new Ext.dd.DragZone(v.getEl(), {
// On receipt of a mousedown event, see if it is within a DataView node.
// Return a drag data object if so.
@@ -31,7 +32,7 @@ myDataView.on('render', function() {
// Use the DataView's own itemSelector (a mandatory property) to
// test if the mousedown is within one of the DataView's nodes.
- var sourceEl = e.getTarget(myDataView.itemSelector, 10);
+ var sourceEl = e.getTarget(v.itemSelector, 10);
// If the mousedown is within a DataView node, clone the node to produce
// a ddel element for use by the drag proxy. Also add application data
@@ -43,8 +44,8 @@ myDataView.on('render', function() {
ddel: d,
sourceEl: sourceEl,
repairXY: Ext.fly(sourceEl).getXY(),
- sourceStore: myDataView.store,
- draggedRecord: v.getRecord(sourceEl)
+ sourceStore: v.store,
+ draggedRecord: v.{@link Ext.DataView#getRecord getRecord}(sourceEl)
}
}
},