You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2017/06/30 21:25:44 UTC
[2/2] git commit: [flex-asjs] [refs/heads/tlf] - Some changes to get
DragAndDrop to work with new List-oriented DnD beads.
Some changes to get DragAndDrop to work with new List-oriented DnD beads.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/fad52145
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/fad52145
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/fad52145
Branch: refs/heads/tlf
Commit: fad5214500960e48be9da87dda88530ae31cc235
Parents: 83e5a68
Author: Peter Ent <pe...@apache.org>
Authored: Fri Jun 30 17:25:35 2017 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Fri Jun 30 17:25:35 2017 -0400
----------------------------------------------------------------------
frameworks/projects/Core/src/main/flex/CoreClasses.as | 1 +
.../DragDrop/src/main/flex/org/apache/flex/events/DragEvent.as | 3 ++-
.../org/apache/flex/html/beads/SingleSelectionDragSourceBead.as | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fad52145/frameworks/projects/Core/src/main/flex/CoreClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/CoreClasses.as b/frameworks/projects/Core/src/main/flex/CoreClasses.as
index 0aaa985..fcd30eb 100644
--- a/frameworks/projects/Core/src/main/flex/CoreClasses.as
+++ b/frameworks/projects/Core/src/main/flex/CoreClasses.as
@@ -71,6 +71,7 @@ internal class CoreClasses
import org.apache.flex.core.IDataProviderItemRendererMapper; IDataProviderItemRendererMapper;
import org.apache.flex.core.IBinaryImageModel; IBinaryImageModel;
import org.apache.flex.core.IDocument; IDocument;
+ import org.apache.flex.core.IDragInitiator; IDragInitiator;
import org.apache.flex.core.IFormatBead; IFormatBead;
import org.apache.flex.core.IImage; IImage;
import org.apache.flex.core.IImageModel; IImageModel;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fad52145/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/events/DragEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/events/DragEvent.as b/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/events/DragEvent.as
index 392da45..9ed81df 100644
--- a/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/events/DragEvent.as
+++ b/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/events/DragEvent.as
@@ -380,7 +380,8 @@ package org.apache.flex.events
}
COMPILE::JS
{
- ((target as IUIBase).element as IEventDispatcher).dispatchEvent(event as window.Event);
+ // ((target as IUIBase).element as IEventDispatcher).dispatchEvent(event as window.Event);
+ (target as IEventDispatcher).dispatchEvent(event as window.Event);
}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fad52145/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/html/beads/SingleSelectionDragSourceBead.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/html/beads/SingleSelectionDragSourceBead.as b/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/html/beads/SingleSelectionDragSourceBead.as
index c911651..0af7043 100644
--- a/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/html/beads/SingleSelectionDragSourceBead.as
+++ b/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/html/beads/SingleSelectionDragSourceBead.as
@@ -22,6 +22,7 @@ package org.apache.flex.html.beads
import org.apache.flex.core.IBead;
import org.apache.flex.core.IDragInitiator;
import org.apache.flex.core.IDataProviderModel;
+ import org.apache.flex.core.IDocument;
import org.apache.flex.core.IItemRenderer;
import org.apache.flex.core.IItemRendererParent;
import org.apache.flex.core.IParent;
@@ -43,7 +44,6 @@ package org.apache.flex.html.beads
* By adding this bead, a user can drag a row of the List to a new location within the list. This bead
* should be used in conjunction with SingleSelectionDropTargetBead.
*
- * @flexjsignoreimport org.apache.flex.core.IDragInitiator
* @see org.apache.flex.html.beads.SingleSelectionDropTargetBead.
*
* @langversion 3.0