You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2020/01/01 17:45:06 UTC
[royale-asjs] branch feature/bead-base updated: More utility
functions used
This is an automated email from the ASF dual-hosted git repository.
harbs pushed a commit to branch feature/bead-base
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/feature/bead-base by this push:
new 450697d More utility functions used
450697d is described below
commit 450697d67e6a55cd2a7a8467f8a7e0bdf717befa
Author: Harbs <ha...@in-tools.com>
AuthorDate: Wed Jan 1 19:44:49 2020 +0200
More utility functions used
---
.../Basic/src/main/royale/org/apache/royale/core/Application.as | 6 +++---
.../projects/Basic/src/main/royale/org/apache/royale/html/Label.as | 5 +++--
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/Application.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/Application.as
index cbd8037..a1a521f 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/Application.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/Application.as
@@ -24,6 +24,7 @@ package org.apache.royale.core
import org.apache.royale.events.MouseEvent;
import org.apache.royale.utils.MXMLDataInterpreter;
import org.apache.royale.utils.Timer;
+ import org.apache.royale.utils.sendEvent;
COMPILE::SWF {
import flash.display.DisplayObject;
@@ -154,7 +155,7 @@ package org.apache.royale.core
for each (var bead:IBead in beads)
addBead(bead);
- dispatchEvent(new org.apache.royale.events.Event("beadsAdded"));
+ sendEvent(this,"beadsAdded");
if (dispatchEvent(new org.apache.royale.events.Event("preinitialize", false, true)))
initialize();
@@ -653,8 +654,7 @@ package org.apache.royale.core
for (var index:int in beads) {
addBead(beads[index]);
}
-
- dispatchEvent(new org.apache.royale.events.Event("beadsAdded"));
+ sendEvent(this,"beadsAdded");
if (dispatchEvent(new org.apache.royale.events.Event("preinitialize", false, true)))
initialize();
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/Label.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/Label.as
index 500f713..1510121 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/Label.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/Label.as
@@ -23,6 +23,7 @@ package org.apache.royale.html
import org.apache.royale.core.ValuesManager;
import org.apache.royale.events.Event;
import org.apache.royale.events.IEventDispatcher;
+ import org.apache.royale.utils.sendEvent;
COMPILE::JS
{
import org.apache.royale.core.WrappedHTMLElement;
@@ -115,7 +116,7 @@ package org.apache.royale.html
{
_text = value;
textNode.nodeValue = value;
- this.dispatchEvent('textChange');
+ sendEvent(this,"textChange");
}
}
@@ -154,7 +155,7 @@ package org.apache.royale.html
COMPILE::JS
{
this.element.innerHTML = value;
- this.dispatchEvent('textChange');
+ sendEvent(this,'textChange');
}
}