You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pi...@apache.org on 2024/05/16 10:21:52 UTC

(royale-asjs) branch develop updated: Jewel Snackbar: Give ability to extend and override SnackbarView

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

piotrz 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 eeb35b95cb Jewel Snackbar: Give ability to extend and override SnackbarView
eeb35b95cb is described below

commit eeb35b95cb5d5c8517866a7e3c30922e98dcb7ce
Author: Piotr Zarzycki <pi...@gmail.com>
AuthorDate: Thu May 16 12:21:44 2024 +0200

    Jewel Snackbar: Give ability to extend and override SnackbarView
---
 .../main/royale/org/apache/royale/jewel/beads/views/SnackbarView.as | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/SnackbarView.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/SnackbarView.as
index a913144be2..d2fbbf03f8 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/SnackbarView.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/SnackbarView.as
@@ -115,7 +115,7 @@ package org.apache.royale.jewel.beads.views
         /**
          *  Update the text when message changed. 
          */
-        private function messageChangeHandler(event:Event):void {
+        protected function messageChangeHandler(event:Event):void {
             COMPILE::JS
             {
                 HTMLElement(host.element.firstChild.firstChild).innerHTML = SnackbarModel(host.model).message;
@@ -125,7 +125,7 @@ package org.apache.royale.jewel.beads.views
         /**
          *  Show the action element or remove it, based on action text.
          */
-        private function actionChangeHandler(event:Event):void {
+        protected function actionChangeHandler(event:Event):void {
             var model:SnackbarModel = host.model as SnackbarModel;
 
             COMPILE::JS
@@ -151,7 +151,7 @@ package org.apache.royale.jewel.beads.views
         /**
          *  Trigger event and dismiss the host when action clicked.
          */
-        private function actionClickHandler(event:Event):void {
+        protected function actionClickHandler(event:Event):void {
             COMPILE::JS
             {
             actionElement.removeEventListener("click", actionClickHandler);