You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/03/10 12:14:59 UTC
[royale-asjs] branch develop updated: jewel-label: sync with basic
binding fix by greg and change to use sendEvent
This is an automated email from the ASF dual-hosted git repository.
carlosrovira 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 f70685e jewel-label: sync with basic binding fix by greg and change to use sendEvent
f70685e is described below
commit f70685e31de8821687a19f84f5df6fb20fe29655
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Tue Mar 10 13:14:49 2020 +0100
jewel-label: sync with basic binding fix by greg and change to use sendEvent
---
.../Jewel/src/main/royale/org/apache/royale/jewel/Label.as | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Label.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Label.as
index 7507ac2..d1e7cad 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Label.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Label.as
@@ -28,7 +28,7 @@ package org.apache.royale.jewel
import org.apache.royale.html.util.addElementToWrapper;
}
import org.apache.royale.core.StyledUIBase;
- import org.apache.royale.events.Event;
+ import org.apache.royale.utils.sendEvent;
/**
* Dispatched when the user clicks on a Label.
@@ -114,9 +114,10 @@ package org.apache.royale.jewel
{
if (textNode)
{
+ value = value != null ? value + '' : '';
_text = value;
textNode.nodeValue = value;
- dispatchEvent(new Event('textChange'));
+ sendEvent(this, "textChange");
}
}
@@ -155,7 +156,7 @@ package org.apache.royale.jewel
COMPILE::JS
{
element.innerHTML = value;
- dispatchEvent(new Event('textChange'));
+ sendEvent(this, "textChange");
}
}