This is an automated email from the ASF dual-hosted git repository. gregdove pushed a commit to branch improvements/Language in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 0a27a593286980aa7740ff618dff48dca1e1d304 Author: greg-dove <[email protected]> AuthorDate: Sat May 4 19:42:19 2019 +1200 Example of extra type safety: Fix for error exposed by complex implicit coercion being on (TypeError: cannot convert components.SomePopUpContent to org.apache.royale.core.IBead) in Vector.push --- .../src/main/royale/components/SomePopUpContent.mxml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/examples/royale/TourDeJewel/src/main/royale/components/SomePopUpContent.mxml b/examples/royale/TourDeJewel/src/main/royale/components/SomePopUpContent.mxml index 06586da..fdea8f6 100644 --- a/examples/royale/TourDeJewel/src/main/royale/components/SomePopUpContent.mxml +++ b/examples/royale/TourDeJewel/src/main/royale/components/SomePopUpContent.mxml @@ -18,7 +18,8 @@ limitations under the License. --> <j:VGroup xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:j="library://ns.apache.org/royale/jewel" + xmlns:j="library://ns.apache.org/royale/jewel" + implements="org.apache.royale.core.IBead" xmlns:js="library://ns.apache.org/royale/basic" xmlns:html="library://ns.apache.org/royale/html" width="500" height="400" gap="3"> @@ -26,6 +27,12 @@ limitations under the License. <fx:Script> <![CDATA[ import org.apache.royale.events.Event; + import org.apache.royale.core.IStrand; + + private var _strand:IStrand; + public function set strand(value:IStrand):void { + _strand = value; + } ]]> </fx:Script> @@ -34,4 +41,4 @@ limitations under the License. <j:DateField/> <j:Button text="Close me!" emphasis="primary" click="dispatchEvent(new Event('closePopUp'))"/> -</j:VGroup> \ No newline at end of file +</j:VGroup>
