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/15 07:54:30 UTC
[royale-asjs] branch develop updated: jewel-textarea: 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 69c5b77 jewel-textarea: don't need goog.events
69c5b77 is described below
commit 69c5b7752a6332e8f6f1e73946902c7872522410
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Aug 15 09:54:17 2020 +0200
jewel-textarea: don't need goog.events
---
.../Jewel/src/main/royale/org/apache/royale/jewel/TextArea.as | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextArea.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextArea.as
index 65a52bc..8a8b375 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextArea.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextArea.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;
}
@@ -125,9 +123,8 @@ package org.apache.royale.jewel
input.setAttribute('spellcheck', 'false');
//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;