You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by yi...@apache.org on 2019/12/11 10:47:27 UTC
[royale-asjs] branch develop updated: Slightly more intuitive
example
This is an automated email from the ASF dual-hosted git repository.
yishayw pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new b533594 Slightly more intuitive example
b533594 is described below
commit b53359484a3904852c1f6cbc3fae6b367638a3c6
Author: DESKTOP-RH4S838\Yishay <yi...@hotmail.com>
AuthorDate: Wed Dec 11 12:47:05 2019 +0200
Slightly more intuitive example
---
.../src/main/royale/MultiDragAndDropExample.mxml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/examples/royale/MultiDragDropExample/src/main/royale/MultiDragAndDropExample.mxml b/examples/royale/MultiDragDropExample/src/main/royale/MultiDragAndDropExample.mxml
index f94f62c..9f3d374 100644
--- a/examples/royale/MultiDragDropExample/src/main/royale/MultiDragAndDropExample.mxml
+++ b/examples/royale/MultiDragDropExample/src/main/royale/MultiDragAndDropExample.mxml
@@ -59,7 +59,13 @@
private function dropHandler(e:Event):void
{
- myList3.dataProvider = DragEvent.dragSource as Array;
+ var newDp:Array = (myList3.dataProvider as Array).concat();
+ var dragSource:Array = DragEvent.dragSource as Array;
+ for (var i:int = 0; i < dragSource.length; i++)
+ {
+ newDp.push(dragSource[i]);
+ }
+ myList3.dataProvider = newDp;
}
]]>