[royale-asjs] branch develop updated: Jewel Validator: Create separate handler for "cleanValidationErrors" event
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 9357039 Jewel Validator: Create separate handler for "cleanValidationErrors" event 9357039 is described below commit 93570392b1cd9442d632b1a956998a4b4a487669 Author: Piotr Zarzycki AuthorDate: Mon Jun 21 13:55:14 2021 +0200 Jewel Validator: Create separate handler for "cleanValidationErrors" event --- .../royale/org/apache/royale/jewel/beads/validators/Validator.as | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as index 3116b79..a3e5cdd 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as @@ -372,7 +372,7 @@ package org.apache.royale.jewel.beads.validators _host = UIUtils.findPopUpHost(hostComponent); _host.popUpParent.addElement(_errorTip, false); - IEventDispatcher(_host.popUpParent).addEventListener("cleanValidationErrors", destroyErrorTip); + IEventDispatcher(_host.popUpParent).addEventListener("cleanValidationErrors", cleanValidationErrorsHandler); } COMPILE::JS { @@ -410,7 +410,7 @@ package org.apache.royale.jewel.beads.validators window.removeEventListener('scroll', repositionHandler, true); } if(_errorTip){ - IEventDispatcher(_errorTip.parent).removeEventListener("cleanValidationErrors", destroyErrorTip); + IEventDispatcher(_errorTip.parent).removeEventListener("cleanValidationErrors", cleanValidationErrorsHandler); _errorTip.parent.removeElement(_errorTip); _errorTip = null; } @@ -481,6 +481,11 @@ package org.apache.royale.jewel.beads.validators return pt; } + protected function cleanValidationErrorsHandler(event:Event):void + { + destroyErrorTip(); + } + /** * Destroy the created errorTip *
[royale-asjs] branch develop updated: Added EventPhase.as
This is an automated email from the ASF dual-hosted git repository. pushminakazi 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 6ae89c2 Added EventPhase.as 6ae89c2 is described below commit 6ae89c2c01d0512466122651c6c2aae55ba39a03 Author: pashminakazi AuthorDate: Mon Jun 21 03:38:28 2021 -0700 Added EventPhase.as --- .../MXRoyale/src/main/royale/MXRoyaleClasses.as| 1 + .../src/main/royale/mx/events/EventPhase.as| 53 ++ 2 files changed, 54 insertions(+) diff --git a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as index d0f047c..aff013c 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as +++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as @@ -389,6 +389,7 @@ internal class MXRoyaleClasses import mx.events.FocusRequestDirection; FocusRequestDirection; import mx.core.IBorder; IBorder; import mx.core.IRectangularBorder; IRectangularBorder; + import mx.events.EventPhase; EventPhase; } diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/events/EventPhase.as b/frameworks/projects/MXRoyale/src/main/royale/mx/events/EventPhase.as new file mode 100644 index 000..817d33b --- /dev/null +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/events/EventPhase.as @@ -0,0 +1,53 @@ + +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + + +package mx.events +{ + +/** + * The DragEvent class represents event objects that are dispatched as part of a drag-and-drop + * operation. + * + * @see mx.managers.DragManager + * @see mx.core.DragSource + * @see mx.core.UIComponent + * + * @langversion 3.0 + * @playerversion Flash 9 + * @playerversion AIR 1.1 + * @productversion Flex 3 + * + * @royalesuppresspublicvarwarning + */ +public final class EventPhase +{ +//include "../core/Version.as"; + + //-- + // + // Class constants + // + //-- + + public static const AT_TARGET:uint = 2; + public static const BUBBLING_PHASE:uint = 3; + public static const CAPTURING_PHASE:uint = 1; +} + +}