flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@classsoftware.com
Subject Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists
Date Tue, 18 Apr 2017 08:24:30 GMT
Hi,

> JFYI - Tried it and it fails to fix the issue.

It looks to related to a bug in getBeadByType. It’s checking _beads not beads and at this
point beads has a single element in it but _beads is empty so this line:

if (!_beads) return null;

returns null and it doesn’t run the rest of the method and goes ahead and adds the bead
defined in the CSS.

Some sample code that reporduces this issue:

<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                xmlns:js="library://ns.apache.org/flexjs/basic"
                xmlns:accessories="org.apache.flex.html.accessories.*">

    <js:valuesImpl>
        <js:SimpleCSSValuesImpl/>
    </js:valuesImpl>

    <js:initialView>
        <js:View>
            <js:Group>
                <js:beads>
                    <js:VerticalLayout />
                </js:beads>
                <js:Label text="Default" />
                <js:DateField>
                    <js:beads>
                        <accessories:DateFormatDDMMYYYYBead />
                    </js:beads>
                </js:DateField>
            </js:Group>
        </js:View>
    </js:initialView>

</js:Application>

Thanks,
Justin



Mime
View raw message