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 af806cc  Adding an event handler in mxml
af806cc is described below

commit af806cc96ee6ac0b0fcb984b5d2c85dcc6138dc6
Author: DESKTOP-RH4S838\Yishay <[email protected]>
AuthorDate: Wed Dec 11 13:00:40 2019 +0200

    Adding an event handler in mxml
    
    For some reason adding just the handler name doesn't work, you need to add 
the event object argument as well.
---
 .../MultiDragDropExample/src/main/royale/MultiDragAndDropExample.mxml  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/examples/royale/MultiDragDropExample/src/main/royale/MultiDragAndDropExample.mxml
 
b/examples/royale/MultiDragDropExample/src/main/royale/MultiDragAndDropExample.mxml
index 9f3d374..bb5f6a3 100644
--- 
a/examples/royale/MultiDragDropExample/src/main/royale/MultiDragAndDropExample.mxml
+++ 
b/examples/royale/MultiDragDropExample/src/main/royale/MultiDragAndDropExample.mxml
@@ -54,7 +54,6 @@
                        myList1.dataProvider = dp;
                        myList2.dataProvider = [];
                        myList3.dataProvider = [];
-                       outOfApplicationBead.addEventListener("drop", 
dropHandler);
                }
 
                private function dropHandler(e:Event):void
@@ -74,7 +73,7 @@
                <js:SimpleCSSValuesImpl />
        </js:valuesImpl>
        <js:beads>
-               <js:OutOfApplicationDropTargetBead id="outOfApplicationBead"/>
+               <js:OutOfApplicationDropTargetBead drop="dropHandler(event)"/>
        </js:beads>
        <js:initialView>
                <js:View>

Reply via email to