flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists
Date Wed, 19 Apr 2017 04:32:51 GMT


On 4/18/17, 3:44 PM, "Justin Mclean" <justin@classsoftware.com> wrote:

>Hi,
>
>> What does your attempt to use the pattern look like?
>
>if (getBeadByType(IFormatBead) == null) {
>	var klass:* = ValuesManager.valuesImpl.getValue(this, "iFormatBead");
>	var bead:IBead = new klass() as IBead;
>	if (bead) {
>		addBead(bead);
>	}
>}
>
>>  Did you apply the pattern inside addedToParent()?
>
>Yes
>
>>  Did you apply the pattern after super.addedToParent()?
>
>Before as that’s what the existing code did, but from what Peter written
>it seems that super call needs to be after.

Typically, the super.addParent() call goes first in order to apply any
beads specified in MXML.

HTH,
-Alex

Mime
View raw message