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/08/14 19:42:45 UTC
[royale-asjs] branch develop updated: jewel-textinput: don't need
goog.events
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 545aed9 jewel-textinput: don't need goog.events
545aed9 is described below
commit 545aed91518870291b73446ce22b2b3ae2b5df47
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Fri Aug 14 21:42:30 2020 +0200
jewel-textinput: don't need goog.events
---
.../Jewel/src/main/royale/org/apache/royale/jewel/TextInput.as | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextInput.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextInput.as
index 466b328..7853f20 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextInput.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextInput.as
@@ -19,8 +19,6 @@ package org.apache.royale.jewel
{
COMPILE::JS
{
- import goog.events;
-
import org.apache.royale.core.WrappedHTMLElement;
import org.apache.royale.html.util.addElementToWrapper;
}
@@ -69,8 +67,8 @@ package org.apache.royale.jewel
//attach input handler to dispatch royale change event when user write in textinput
//goog.events.listen(element, 'change', killChangeHandler);
- goog.events.listen(input, 'input', textChangeHandler);
- goog.events.listen(input, 'keypress', enterEventHandler, true);
+ input.addEventListener("input", textChangeHandler)
+ input.addEventListener("keypress", enterEventHandler, true);
positioner = document.createElement('div') as WrappedHTMLElement;