This is an automated email from the ASF dual-hosted git repository.

harbs 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 b5cd788e62 Quick fix for undefined error
b5cd788e62 is described below

commit b5cd788e62c2f8002bb69300f58e1cd3c0f73e39
Author: Harbs <[email protected]>
AuthorDate: Thu Apr 7 14:14:09 2022 +0300

    Quick fix for undefined error
---
 frameworks/projects/Jewel/asconfig.json                             | 3 ++-
 .../apache/royale/jewel/beads/controllers/SpinnerMouseController.as | 6 +++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/Jewel/asconfig.json 
b/frameworks/projects/Jewel/asconfig.json
index a9a55bf334..f190bddbc7 100644
--- a/frameworks/projects/Jewel/asconfig.json
+++ b/frameworks/projects/Jewel/asconfig.json
@@ -20,7 +20,8 @@
     "compilerOptions": {
         "debug": true,
         "targets": [
-            "JSRoyale", "SWF"
+            "JSRoyale",
+            "SWF"
         ],
         "include-classes": [
             "src/main/royale/JewelClasses.as"
diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/SpinnerMouseController.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/SpinnerMouseController.as
index e9b6929e86..1ef88f4cac 100755
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/SpinnerMouseController.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/SpinnerMouseController.as
@@ -158,7 +158,11 @@ package org.apache.royale.jewel.beads.controllers
                {
                        if (timer != null && timer.running)
                        {
-                               timer.removeAllListeners();
+                               //TODO removeAllListeners should probably not 
be used as it's a goog construct
+                               COMPILE::JS
+                               {
+                                       timer.removeAllListeners();
+                               }
                                timer.stop();
                                timer = null;
                        }

Reply via email to